mirror of
https://github.com/polpo/picogus.git
synced 2026-10-25 21:40:16 +00:00
Fix GUS playmidi - it uses both timers
This commit is contained in:
1 parent
f960d70309
commit
cbf761f3fb
1 file changed
+3
-3
+3
-3
@@ -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
|
||||
|
||||
Reference in new issue
Block a user