Skip to content

Commit

Permalink
Fixed reset vector bug in reset() routine (#778)
Browse files Browse the repository at this point in the history
  • Loading branch information
dirkwhoffmann committed Jan 22, 2024
1 parent 10fa381 commit 1866c37
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Emulator/Components/C64.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -258,6 +258,9 @@ C64::reset(bool hard)
// Execute the standard reset routine
CoreComponent::reset(hard);

// Reinitialize the program counter
cpu.reg.pc = cpu.reg.pc0 = mem.resetVector();

// Inform the GUI
msgQueue.put(MSG_RESET);
}
Expand Down

0 comments on commit 1866c37

Please sign in to comment.