From 14c215208e77b500c14b920b5c47186256378ade Mon Sep 17 00:00:00 2001 From: negative Date: Sun, 5 Jun 2022 19:09:17 +0800 Subject: [PATCH] Fix Apple Town Story (FDS) crash Fix https://github.com/TASEmulators/fceux/issues/487 fceumm and mednafen-nes has similar placement for SIRQStat --- src/sound.cpp | 5 +++-- 1 file 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); + } } } }