DOS-debug icon indicating copy to clipboard operation
DOS-debug copied to clipboard

Assembler exchanges XCHG operands order versus disassembler

Open ecm-pushbx opened this issue 1 year ago • 1 comments

In a blog post I listed this fix to lDebug:

instr.set: Avoid swapping XCHG operand order between assembler and disassembler, use same order as NASM/NDISASM

This is what it looks like in Debug/X v2.03:

E:\>debugxd                                                                     
]a                                                                              
0B24:0100 xchg bx,cx                                                            
0B24:0102 xchg cx,bx                                                            
0B24:0104                                                                       
]u 100 l 4                                                                      
0B24:0100 87CB              XCHG    CX,BX                                       
0B24:0102 87D9              XCHG    BX,CX                                       
]

ecm-pushbx avatar Apr 28 '24 15:04 ecm-pushbx

Ok, thanks - probably it should be fixed...

Baron-von-Riedesel avatar May 05 '24 16:05 Baron-von-Riedesel