all repos — mgba @ 0ddac5e9614cefe166bee5920ad4455b78d92a35

mGBA Game Boy Advance Emulator

LR35902: Fix spurious IRQs
Jeffrey Pfau jeffrey@endrift.com
Sat, 20 Feb 2016 02:09:27 -0800
commit

0ddac5e9614cefe166bee5920ad4455b78d92a35

parent

8071a5250546e5975eb98fa7c47de88021765964

1 files changed, 1 insertions(+), 1 deletions(-)

jump to
M src/lr35902/lr35902.csrc/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);