[Nasm-devel] Wrong encoding xchg

C. Masloch pushbx at ulukai.org
Mon Nov 29 04:01:05 PST 2021


On at 2021-11-28 10:01 +0100, romek.globescs at wp.pl wrote:
> Hi,
> 
> It seems nasm is wrong encoding XCHG AL, BL (and similar). It is 86C3, 
> but it should be 86D8.
> 
> Romek

Both of these are functionally the same. My debugger disassembles them 
with the order reversed, but the order for xchg doesn't matter.

-e 100 86 c3 86 d8
-u 100 l 4
1F3E:0100 86C3              xchg    al, bl
1F3E:0102 86D8              xchg    bl, al
-

Regards,
ecm


More information about the Nasm-devel mailing list