Spring IRQs if we need to

This commit is contained in:
Jeffrey Pfau 2013-04-21 01:09:11 -07:00
parent 3ca5e52de1
commit 9f425c53c8
1 changed files with 5 additions and 0 deletions

View File

@ -77,6 +77,11 @@ static void GBAProcessEvents(struct ARMBoard* board) {
int32_t nextEvent = INT_MAX;
int32_t testEvent;
if (gbaBoard->p->springIRQ) {
ARMRaiseIRQ(&gbaBoard->p->cpu);
gbaBoard->p->springIRQ = 0;
}
testEvent = GBAVideoProcessEvents(&gbaBoard->p->video, cycles);
if (testEvent < nextEvent) {
nextEvent = testEvent;