Spring IRQs if we need to
Jeffrey Pfau jeffrey@endrift.com
Sun, 21 Apr 2013 01:09:11 -0700
1 files changed,
5 insertions(+),
0 deletions(-)
jump to
M
src/gba/gba.c
→
src/gba/gba.c
@@ -77,6 +77,11 @@ int32_t cycles = board->cpu->cycles;
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;