Fix Apple Town Story (FDS) crash

Fix https://github.com/TASEmulators/fceux/issues/487

fceumm and mednafen-nes has similar placement for SIRQStat
This commit is contained in:
negative 2022-06-05 19:09:17 +08:00 committed by zeromus
parent 2c85cc53c5
commit 14c215208e
1 changed files with 3 additions and 2 deletions

View File

@ -534,9 +534,10 @@ static INLINE void DMCDMA(void)
PrepDPCM();
else
{
SIRQStat|=0x80;
if(DMCFormat&0x80)
if(DMCFormat&0x80) {
SIRQStat|=0x80;
X6502_IRQBegin(FCEU_IQDPCM);
}
}
}
}