assembly - Moving a quadword number to xmm registers -
i trying move number in 64-bit register xmm register arithmetic. thinking was:
movq xmm1, r14
in program r14 holding counter , need moved xmm1 can divide sum of numbers have stored in xmm0. , display it.
when execute code, stores 0 xmm1.
someone please help.
i created test.asm
as:
section .code global _start _start: mov r14,0x123456789abcdef0 movq xmm1, r14 int 3
compiled , linked with:
nasm.exe -f win64 -o test.obj test.asm link.exe test.obj /entry:_start /subsystem:console
and ran under 64-bit windbg. when hit int 3
windbg showed registers as:
r14 123456789abcdef0 xmm1 0.000000e+000: 0.000000e+000: 5.690457e-028:-7.811515e-023 xmm1/0 9abcdef0 xmm1/1 12345678 xmm1/2 0 xmm1/3 0 xmm1l 1234:5678:9abc:def0 xmm1h 0:0:0:0
...and having typed of that, possible looking @ xmm1
floating point instead of integer values?
Comments
Post a Comment