mirror of
https://github.com/ekeeke/Genesis-Plus-GX.git
synced 2024-05-20 13:17:37 -04:00
[Core/CD] added clear of CDC decoder interrupt pending flag when decoding is disabled (verified on real hardware, cf. Krikzz's mcd-verificator)
This commit is contained in:
parent
47761b9b8f
commit
f09c97336e
|
@ -680,6 +680,16 @@ void cdc_reg_w(unsigned char data)
|
|||
/* set CRCOK bit only if decoding is enabled */
|
||||
cdc.stat[0] = data & BIT_DECEN;
|
||||
|
||||
/* decoding disabled ? */
|
||||
if (!(data & BIT_DECEN))
|
||||
{
|
||||
/* clear pending decoder interrupt */
|
||||
cdc.ifstat |= BIT_DECI;
|
||||
|
||||
/* update CDC IRQ state */
|
||||
cdc.irq &= ~BIT_DECI;
|
||||
}
|
||||
|
||||
/* update STAT2 register */
|
||||
if (data & BIT_AUTORQ)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue