From 0ddac5e9614cefe166bee5920ad4455b78d92a35 Mon Sep 17 00:00:00 2001 From: Jeffrey Pfau Date: Sat, 20 Feb 2016 02:09:27 -0800 Subject: [PATCH] LR35902: Fix spurious IRQs --- src/lr35902/lr35902.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lr35902/lr35902.c b/src/lr35902/lr35902.c index ff92587fb..dbc1a489b 100644 --- a/src/lr35902/lr35902.c +++ b/src/lr35902/lr35902.c @@ -99,7 +99,6 @@ static void _LR35902InstructionIRQ(struct LR35902Core* cpu) { cpu->bus = cpu->pc; cpu->executionState = LR35902_CORE_MEMORY_STORE; cpu->instruction = _LR35902InstructionIRQDelay; - cpu->irqh.setInterrupts(cpu, false); } static void _LR35902Step(struct LR35902Core* cpu) { @@ -113,6 +112,7 @@ static void _LR35902Step(struct LR35902Core* cpu) { cpu->index = cpu->sp; cpu->irqPending = false; cpu->instruction = _LR35902InstructionIRQ; + cpu->irqh.setInterrupts(cpu, false); break; } cpu->bus = cpu->memory.cpuLoad8(cpu, cpu->pc);