Possible bug: mov rax, moffset64 not encoded properly.

Vivek Mohan vivek.mt at gmail.com
Mon Jun 5 07:03:45 PDT 2006


Hi,

YASM does not encode the following properly.

[bits 64]

mov rax, [0x0102030405060708]
mov [0x0102030405060708], rax

Says....

-:3: warning: value does not fit in 32 bit field
-:4: warning: value does not fit in 32 bit field

AMD64 Manual says the following are possible..

mov rax, moffset64
mov moffset64, rax

Proper encodings should be,

a1 08 07 06 05 04 03 02 01
a3 08 07 06 05 04 03 02 01

Vivek
-- 
Udis86 - http://udis86.sourceforge.net/


More information about the yasm-devel mailing list