What you're asking is not possible. You will have to add more instructions like the add you mentioned. If you're trying to add a float value then add won't work because that's for integer (whole number) values only.
addss - Add float value (scalar-single)
addsd - Add double value (scalar-double)
`add` only works for integers. Use `addss` / `addsd` for floats / doubles respectively along with xmm registers.
Code:
movss xmm0,[address]
addss xmm0,[valueAddr]
valueAddr:
dd (float)5.0
Note `addss` / `addsd` can't take an immediate as an argument. The generally accepted way of working around this is to store the value to add into memory and reference the address it's stored at. _________________
I don't know where I'm going, but I'll figure it out when I get there.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum