[Nasm-bugs] [Bug 3392665] "mov ds, dword [0]" is not accepted and "mov ds, word [0]" in 32-bit segment does not put o16

noreply-nasm at dev.nasm.us noreply-nasm at dev.nasm.us
Sun May 24 13:13:07 PDT 2020


C. Masloch <pushbx at ulukai.org> changed:

           What    |Removed                     |Added
                 CC|                            |pushbx at ulukai.org

--- Comment #3 from C. Masloch <pushbx at ulukai.org> ---
You're right about plain [0], I'm only concerned about cases involving
prefixes. By the way, ndisasm's output is valid input to nasm here it seems,
which slightly contradicts your statement. Observe:

$ cat test2.asm
        bits BITS
mov ds, [dword 0]
mov ds, [word 0]
$ nasm test2.asm -DBITS=16 && ndisasm -b16 test2
00000000  678E1D00000000    mov ds,[dword 0x0]
00000007  8E1E0000          mov ds,[0x0]
$ nasm test2.asm -DBITS=32 && ndisasm -b32 test2
00000000  8E1D00000000      mov ds,[dword 0x0]
00000006  678E1E0000        mov ds,[word 0x0]

You are receiving this mail because:
You are on the CC list for the bug.
You are watching all bug changes.

More information about the Nasm-bugs mailing list