Skip to content

Commit 8237e5f

Browse files
rofl0rcarmiker
authored andcommitted
jgz80: improve debug output
1 parent 4f1e2f7 commit 8237e5f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

z80.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1252,9 +1252,9 @@ static char* z80_disas(z80* const z) {
12521252
Z80_EXPORT void z80_debug_output(z80* const z) {
12531253
if (z) { }
12541254
printf("PC: %04X, AF: %04X, BC: %04X, DE: %04X, HL: %04X, SP: %04X, "
1255-
"IX: %04X, IY: %04X, I: %02X, R: %02X",
1255+
"IX: %04X, IY: %04X, IR: %04X, WZ: %04X",
12561256
z->pc, z->af, z->bc, z->de, z->hl, z->sp,
1257-
z->ix, z->iy, z->i, z->r);
1257+
z->ix, z->iy, (z->i << 8) | z->r, z->mem_ptr);
12581258

12591259
printf("\t(%s %02X %02X %02X %02X)\n",
12601260
z80_disas(z),

0 commit comments

Comments
 (0)