Unverified Commit f6c92c91 authored by trioan's avatar trioan Committed by GitHub
Browse files

fix mikie irq

Check and launch system irqs after timers done. Improves Ms. Pac-Man.
parent 10f51516
......@@ -3670,6 +3670,11 @@ inline void CMikie::Update(void)
// if(gSystemCycleCount==gNextTimerEvent) gError->Warning("CMikie::Update() - gSystemCycleCount==gNextTimerEvent, system lock likely");
// TRACE_MIKIE1("Update() - NextTimerEvent = %012d",gNextTimerEvent);
// Update system IRQ status as a result of timer activity
if(gSystemIRQ && gSystemCPUSleep) { ClearCPUSleep(); /*puts("ARLARM"); */ }
//else if(gSuzieDoneTime) SetCPUSleep();
// Now all the timer updates are done we can increment the system
// counter for any work done within the Update() function, gSystemCycleCounter
// cannot be updated until this point otherwise it screws up the counters.
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment