mirror of https://github.com/mgba-emu/mgba.git
ARM, SM83: Check for events both before and after single stepping
This commit is contained in:
parent
5d32e432b3
commit
9c673f527d
|
@ -234,6 +234,9 @@ void ARMRun(struct ARMCore* cpu) {
|
||||||
} else {
|
} else {
|
||||||
ARMStep(cpu);
|
ARMStep(cpu);
|
||||||
}
|
}
|
||||||
|
while (cpu->cycles >= cpu->nextEvent) {
|
||||||
|
cpu->irqh.processEvents(cpu);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void ARMRunLoop(struct ARMCore* cpu) {
|
void ARMRunLoop(struct ARMCore* cpu) {
|
||||||
|
|
|
@ -181,6 +181,9 @@ void SM83Tick(struct SM83Core* cpu) {
|
||||||
cpu->irqh.processEvents(cpu);
|
cpu->irqh.processEvents(cpu);
|
||||||
}
|
}
|
||||||
_SM83TickInternal(cpu);
|
_SM83TickInternal(cpu);
|
||||||
|
while (cpu->cycles >= cpu->nextEvent) {
|
||||||
|
cpu->irqh.processEvents(cpu);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void SM83Run(struct SM83Core* cpu) {
|
void SM83Run(struct SM83Core* cpu) {
|
||||||
|
|
Loading…
Reference in New Issue