mirror of
https://github.com/AppleWin/AppleWin.git
synced 2025-01-10 13:29:56 +00:00
Mockingboard: Better support for stop/starting 6522's IER.TIMERx (#567)
This commit is contained in:
parent
7f478fa36c
commit
9bc7feb37e
@ -480,11 +480,11 @@ static void SY6522_Write(BYTE nDevice, BYTE nReg, BYTE nValue)
|
|||||||
pMB->sy6522.IER |= nValue;
|
pMB->sy6522.IER |= nValue;
|
||||||
UpdateIFR(pMB, 0);
|
UpdateIFR(pMB, 0);
|
||||||
|
|
||||||
// Check if active timer changed from non-interrupt (polling IFR) to interrupt:
|
// Check if a timer interrupt has been enabled (regardless of if there's an active timer or not): GH#567
|
||||||
if ((pMB->sy6522.IER & IxR_TIMER1) && pMB->bTimer1Active)
|
if (pMB->sy6522.IER & IxR_TIMER1)
|
||||||
StartTimer1(pMB);
|
StartTimer1(pMB);
|
||||||
|
|
||||||
if ((pMB->sy6522.IER & IxR_TIMER2) && pMB->bTimer2Active)
|
if (pMB->sy6522.IER & IxR_TIMER2)
|
||||||
StartTimer2(pMB);
|
StartTimer2(pMB);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user