Skip to content

Commit 07f781b

Browse files
joevtdingusdev
authored andcommitted
debugger: Disassemble instructions while stepping.
1 parent 91f5ccc commit 07f781b

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

debugger/debugger.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -753,6 +753,9 @@ void DppcDebugger::enter_debugger() {
753753
delete_prompt();
754754
}
755755
for (; --count >= 0;) {
756+
addr_str = "R24";
757+
addr = static_cast<uint32_t>(get_reg(addr_str) - 2);
758+
disasm_68k(1, addr);
756759
exec_single_68k();
757760
}
758761
#endif
@@ -762,6 +765,7 @@ void DppcDebugger::enter_debugger() {
762765
}
763766
for (; --count >= 0;) {
764767
addr = ppc_state.pc;
768+
disasm(1, addr);
765769
ppc_exec_single();
766770
}
767771
}

0 commit comments

Comments
 (0)