NASM Assembly 64-bit
I'm fairly new to assembly. My question is how do I assign a value as a float to a variable?
C example:
float x;
x = 10.00;
I've looked around a bit but I haven't obtained a definite answer. All I've seen is constants being moved to xmm0.
ten: dw 10.00
x: resw 1
movsd xmm0, [ten]
movsd [x], xmm0
I'm sure there's a way to skip that hassle?