I am trying to move a number in a 64-bit register to an xmm register to do arithmetic. My thinking was:
movq xmm1, r14
In my program r14 is holding the counter and I need it to get moved into xmm1 so I can divide it with the sum of numbers i have stored in xmm0. And then display it.
When I execute the code, it stores 0 into xmm1.
Someone please help.
I created
test.asm
as:Compiled and linked with:
And ran it under the 64-bit WinDbg. When it hit the
int 3
WinDbg showed the registers as:...and having typed all of that, is it possible that you are looking at
xmm1
as a floating point instead of integer values?