mirror of https://github.com/mgba-emu/mgba.git
LR35902: Fix spurious IRQs
This commit is contained in:
parent
8071a52505
commit
0ddac5e961
|
@ -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);
|
||||||
|
|
Loading…
Reference in New Issue