NASM - The Netwide Assembler

NASM Forum => Using NASM => Topic started by: nobody on April 30, 2009, 04:51:38 AM

Title: mov al, [0x00]
Post by: nobody on April 30, 2009, 04:51:38 AM
Hi. First time poster. Sorry if this explained somewhere.

I'm using "nasm -f elf64" to assemble and "ndisasm -b64" to disassemble.

These two byte sequences both disassemble as mov al, [0x00]:

(1)  8A042500000000
(2)  67A000000000

If I assemble mov al, [dword 0x00] I get the second sequence. Why not the first which is one byte shorter?

Jon