all repos — mgba @ 9f425c53c8467f03fc998a0905a198e896559388

mGBA Game Boy Advance Emulator

Spring IRQs if we need to
Jeffrey Pfau jeffrey@endrift.com
Sun, 21 Apr 2013 01:09:11 -0700
commit

9f425c53c8467f03fc998a0905a198e896559388

parent

3ca5e52de17d3acc9858cc22cf7ad6921dff8a67

1 files changed, 5 insertions(+), 0 deletions(-)

jump to
M src/gba/gba.csrc/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;