I think this fixes one of my NES issues. The fix-up required for the PC is handled by the fetchByte associated with the BRK instruction.

Signed-off-by: Adrian Conlon <Adrian.conlon@gmail.com>
This commit is contained in:
Adrian Conlon
2019-01-07 01:28:23 +00:00
parent 741e005e0c
commit 3faec680b0

View File

@@ -58,13 +58,13 @@ void EightBit::MOS6502::handleRESET() {
void EightBit::MOS6502::handleNMI() {
raise(HALT());
interrupt();
Processor::execute(0);
raise(NMI());
}
void EightBit::MOS6502::handleIRQ() {
raise(HALT());
interrupt();
Processor::execute(0);
raise(INT());
}