Skip to content

Commit

Permalink
Use current RAM/ROM bank for PC when entering break. (#396)
Browse files Browse the repository at this point in the history
  • Loading branch information
mjallison42 authored Apr 25, 2022
1 parent 4d97197 commit 95471dc
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/debugger.c
Original file line number Diff line number Diff line change
Expand Up @@ -227,6 +227,7 @@ void DEBUGSetBreakPoint(int newBreakPoint) {
void DEBUGBreakToDebugger(void) {
currentMode = DMODE_STOP;
currentPC = pc;
currentPCBank = pc < 0xC000 ? memory_get_ram_bank() : memory_get_rom_bank();
}

// *******************************************************************************************
Expand Down

0 comments on commit 95471dc

Please sign in to comment.