Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/ClusterM/fceux.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornegative <negativeExponent@users.noreply.github.com>2022-06-05 14:09:17 +0300
committerzeromus <zeromus@users.noreply.github.com>2022-06-05 23:18:07 +0300
commit14c215208e77b500c14b920b5c47186256378ade (patch)
tree2f3b400be06b923ab7883cba1e5455569d4be91b
parent2c85cc53c5540ef2ecf22c60ec20f5aa061cec24 (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.cpp5
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);
+ }
}
}
}