[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:16:24 PDT 2020


https://bugzilla.nasm.us/show_bug.cgi?id=3392665

--- Comment #5 from C. Masloch <pushbx at ulukai.org> ---
For completeness: a32 is disassembled with "dword" within the brackets. osize
prefixes are disassembled as explicit prefixes.

$ cat test3.asm 
        bits BITS
mov ds, [0]
o16
mov ds, [0]
o32
mov ds, [0]
$ nasm test3.asm -DBITS=16 && ndisasm -b16 test3
00000000  8E1E0000          mov ds,[0x0]
00000004  8E1E0000          mov ds,[0x0]
00000008  668E1E0000        o32 mov ds,[0x0]
$ nasm test3.asm -DBITS=32 && ndisasm -b32 test3
00000000  8E1D00000000      mov ds,[dword 0x0]
00000006  668E1D00000000    o16 mov ds,[dword 0x0]
0000000D  8E1D00000000      mov ds,[dword 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