diff options
author | negative <negativeExponent@users.noreply.github.com> | 2022-06-05 14:09:17 +0300 |
---|---|---|
committer | zeromus <zeromus@users.noreply.github.com> | 2022-06-05 23:18:07 +0300 |
commit | 14c215208e77b500c14b920b5c47186256378ade (patch) | |
tree | 2f3b400be06b923ab7883cba1e5455569d4be91b | |
parent | 2c85cc53c5540ef2ecf22c60ec20f5aa061cec24 (diff) |
Fix Apple Town Story (FDS) crash
Fix https://github.com/TASEmulators/fceux/issues/487
fceumm and mednafen-nes has similar placement for SIRQStat
-rw-r--r-- | src/sound.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/sound.cpp b/src/sound.cpp index e17dae72..040132b0 100644 --- a/src/sound.cpp +++ b/src/sound.cpp @@ -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);
+ }
}
}
}
|