nasm64developer
-
2008-07-28
- priority: 5 --> 1
$ cat > movq.asm
bits 64
movd mm0, eax
movq mm0, rax
movd eax, mm0
movq rax, mm0
movd xmm0, eax
movq xmm0, rax
movd eax, xmm0
movq rax, xmm0
$ nasm movq.asm ; ndisasm -b 64 movq
00000000 0F6EC0 movd mm0,eax
00000003 480F6EC0 o64 movd mm0,eax
00000007 0F7EC0 movd eax,mm0
0000000A 480F7EC0 o64 movd eax,mm0
0000000E 660F6EC0 movd xmm0,eax
00000012 66480F6EC0 movd xmm0,eax
00000017 660F7EC0 movd eax,xmm0
0000001B 66480F7EC0 movd eax,xmm0
The generated machine code looks correct, but the disassembly is obviously not all correct.
Tested with nasm 2.03.01-20080724.