Skip to content

Commit e22d0d6

Browse files
committed
Replace REG_PPC with the pc parameter in m68k_instruction_callback
REG_PPC is defined as the "previous value in the program counter".
1 parent 4bc786a commit e22d0d6

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

lib/atari/cpu.c

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,15 +21,14 @@ static struct {
2121
void m68k_instruction_callback(int pc)
2222
{
2323
#if 0 /* FIXME */
24-
printf("%08x: %04x %s\n",
25-
ADDRESS_68K(REG_PPC), REG_IR,
26-
m68ki_disassemble_quick(ADDRESS_68K(REG_PPC), M68K_CPU_TYPE_68000));
24+
printf("%08x: %04x %s\n", pc, REG_IR,
25+
m68ki_disassemble_quick(pc, M68K_CPU_TYPE_68000));
2726
#endif
2827

2928
if (!instruction_callback.cb)
3029
return;
3130

32-
instruction_callback.cb(ADDRESS_68K(REG_PPC), instruction_callback.arg);
31+
instruction_callback.cb(pc, instruction_callback.arg);
3332
}
3433

3534
void cpu_instruction_callback(void (*cb)(uint32_t pc, void *arg), void *arg)

0 commit comments

Comments
 (0)