Baron-von-Riedesel / DOS-debug

Debug and DebugX (short: Debug/X) are extended versions of MS DEBUG
58 stars 12 forks source link

Assembler exchanges XCHG operands order versus disassembler #18

Open ecm-pushbx opened 7 months ago

ecm-pushbx commented 7 months ago

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                                       
]
Baron-von-Riedesel commented 7 months ago

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