Skip to content

Commit

Permalink
fix disassembly of ld ix/iy, (aaaa) + cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
davidly committed Jan 3, 2024
1 parent 65713f4 commit 4f18fd7
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
4 changes: 1 addition & 3 deletions x80.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -1430,7 +1430,7 @@ void z80_render( char * ac, uint8_t op, uint16_t address )
else if ( 0x26 == op2 )
sprintf( ac, "ld %sh, %02x", i, op3 );
else if ( 0x2a == op2 )
sprintf( ac, "ld %s, %04xh", i, op34 );
sprintf( ac, "ld %s, (%04xh)", i, op34 );
else if ( 0x2b == op2 )
sprintf( ac, "dec %s", i );
else if ( 0x2e == op2 )
Expand Down Expand Up @@ -1703,8 +1703,6 @@ not_inlined void x80_trace_state()
uint8_t op3 = memory[ reg.pc + 2 ];
uint8_t op4 = memory[ reg.pc + 3 ];

// tracer.Trace( "0x1bb9: %c%c%c%c -- 0x29b0: '%s'\n", memory[ 0x1bb9 ], memory[ 0x1bba ], memory[ 0x1bbb ], memory[ 0x1bbc ], & memory[ 0x29b0 ] );

if ( reg.fZ80Mode )
tracer.Trace( "pc %04x, op %02x, op2 %02x, op3 %02x, op4 %02x, a %02x, B %04x, D %04x, H %04x, ix %04x, iy %04x, sp %04x, %s, %s\n",
reg.pc, op, op2, op3, op4, reg.a, reg.B(), reg.D(), reg.H(), reg.ix, reg.iy, reg.sp,
Expand Down
1 change: 0 additions & 1 deletion x80.hxx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
#define OPCODE_JMP 0xC3 // jmp nn
#define OPCODE_RET 0xC9


const size_t reg_offsets[8] = { 1, 0, 3, 2, 5, 4, 8, 9 }; //bcdehlfa

struct registers
Expand Down

0 comments on commit 4f18fd7

Please sign in to comment.