LR35902: Fix spurious IRQs
Jeffrey Pfau jeffrey@endrift.com
Sat, 20 Feb 2016 02:09:27 -0800
1 files changed,
1 insertions(+),
1 deletions(-)
jump to
M
src/lr35902/lr35902.c
→
src/lr35902/lr35902.c
@@ -99,7 +99,6 @@ cpu->index = cpu->sp;
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 @@ if (cpu->irqPending) {
cpu->index = cpu->sp; cpu->irqPending = false; cpu->instruction = _LR35902InstructionIRQ; + cpu->irqh.setInterrupts(cpu, false); break; } cpu->bus = cpu->memory.cpuLoad8(cpu, cpu->pc);