ARM, SM83: Check for events both before and after single stepping

This commit is contained in:
Vicki Pfau 2023-09-06 18:58:47 -07:00
parent 5d32e432b3
commit 9c673f527d
2 changed files with 6 additions and 0 deletions

View File

@ -234,6 +234,9 @@ void ARMRun(struct ARMCore* cpu) {
} else {
ARMStep(cpu);
}
while (cpu->cycles >= cpu->nextEvent) {
cpu->irqh.processEvents(cpu);
}
}
void ARMRunLoop(struct ARMCore* cpu) {

View File

@ -181,6 +181,9 @@ void SM83Tick(struct SM83Core* cpu) {
cpu->irqh.processEvents(cpu);
}
_SM83TickInternal(cpu);
while (cpu->cycles >= cpu->nextEvent) {
cpu->irqh.processEvents(cpu);
}
}
void SM83Run(struct SM83Core* cpu) {