Fix GUS playmidi - it uses both timers

This commit is contained in:
Ian Scott committed 2026-04-17 19:58:04 -06:00
1 parent f960d70309
commit cbf761f3fb
1 file changed
+3 -3
+3 -3
View File
@@ -1245,9 +1245,9 @@ __force_inline static void ExecuteGlobRegister(void) {
if (!myGUS.timers[0].raiseirq) myGUS.IRQStatus&=~0x04;
myGUS.timers[1].raiseirq=(myGUS.TimerControl & 0x08)>0;
if (!myGUS.timers[1].raiseirq) myGUS.IRQStatus&=~0x08;
if (!myGUS.timers[0].raiseirq && !myGUS.timers[1].raiseirq) {
GUS_CheckIRQ();
}
// Always re-evaluate IRQ line: flipping either TimerControl bit changes
// the effective status even when raiseirq is still set on the other timer
GUS_CheckIRQ();
critical_section_exit(&gus_crit);
break;
case 0x46: // Timer 1 control