LR35902: Fix spurious IRQs

This commit is contained in:
Jeffrey Pfau 2016-02-20 02:09:27 -08:00
parent 8071a52505
commit 0ddac5e961
1 changed files with 1 additions and 1 deletions

View File

@ -99,7 +99,6 @@ static void _LR35902InstructionIRQ(struct LR35902Core* cpu) {
cpu->bus = cpu->pc; cpu->bus = cpu->pc;
cpu->executionState = LR35902_CORE_MEMORY_STORE; cpu->executionState = LR35902_CORE_MEMORY_STORE;
cpu->instruction = _LR35902InstructionIRQDelay; cpu->instruction = _LR35902InstructionIRQDelay;
cpu->irqh.setInterrupts(cpu, false);
} }
static void _LR35902Step(struct LR35902Core* cpu) { static void _LR35902Step(struct LR35902Core* cpu) {
@ -113,6 +112,7 @@ static void _LR35902Step(struct LR35902Core* cpu) {
cpu->index = cpu->sp; cpu->index = cpu->sp;
cpu->irqPending = false; cpu->irqPending = false;
cpu->instruction = _LR35902InstructionIRQ; cpu->instruction = _LR35902InstructionIRQ;
cpu->irqh.setInterrupts(cpu, false);
break; break;
} }
cpu->bus = cpu->memory.cpuLoad8(cpu, cpu->pc); cpu->bus = cpu->memory.cpuLoad8(cpu, cpu->pc);