Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update z80.cpp for hex instead of decimal disassembly print items
For more usable for developers Z80 disassembler output, change many of the decimal numbers to hex numbers. The #define HEX_OUTPUT can be undefined to revert back to the original output with a re-compile of the code. For example: ' out (0),a => out (0x00),a out (64),a => out (0x40),a out (240),a => out (0xf0),a out (176),a => out (0xb0),a in a,(0) => in a,(0x00) in a,(127) => in a,(0x7f) in a,(255) => in a,(0xff) in a,(176) => in a,(0xb0) djnz 141 (8) => djnz 0x008d (8) jr c,141 (6) => jr c,0x008d (6) jr nc,141 (4) => jr nc,0x008d (4) jr z,141 (2) => jr z,0x008d (2) jr nz,141 (0) => jr nz,0x008d (0) jr 394 (127) => jr 0x018a (127) jr 141 (-128) => jr 0x008d (-128) cp 255 => cp 0xff xor 255 => xor 0xff or 255 => or 0xff and 255 => and 0xff sbc a,255 => sbc a,0xff sub 255 => sub 0xff adc a,255 => adc a,0xff add a,255 => add a,0xff ld (ix+5),6 => ld (ix+5),0x06 ld (iy),238 => ld (iy),0xee ld (hl),254 => ld (hl),0xfe ld a,255 => ld a,0xff ld b,1 => ld b,0x01 ld c,2 => ld c,0x02 ld d,4 => ld d,0x04 ld e,8 => ld e,0x08 ld h,16 => ld h,0x10 ld l,18 => ld l,0x12 '
- Loading branch information