emustudio / edigen

Emulator Disassembler Generator
GNU General Public License v3.0
4 stars 0 forks source link

After fix from #18, 16 bit values are disassembled as signed #19

Closed vbmacher closed 8 years ago

vbmacher commented 9 years ago

For example, instruction

lxi SP, 0E3ABh

is dissassembled as

lxi SP, -01C55

Unfortunatelly, this is probably caused by BigInteger.toString() inside Disassembler.edt method format().

I think it will be possible to use here RadixUtils.convertToRadix() from emuLib.

vbmacher commented 9 years ago

Also, there should probably exist some possibility of signed %X version of format; for relative jumps. But for this purpose maybe classic %d will be enough.