From 3cfefae2219cfb719b2096f409521cc537c2ed19 Mon Sep 17 00:00:00 2001 From: tildearrow Date: Fri, 26 Apr 2024 21:33:15 -0500 Subject: [PATCH] fix prescaler address decoding 2 commit 423b1d72e9df217d24837581c8090cc29214815e of https://github.com/nukeykt/YM2608-LLE by nukeykt --- extern/YM2608-LLE/fmopna_impl.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/extern/YM2608-LLE/fmopna_impl.c b/extern/YM2608-LLE/fmopna_impl.c index 06febf09c..bb6a174fb 100644 --- a/extern/YM2608-LLE/fmopna_impl.c +++ b/extern/YM2608-LLE/fmopna_impl.c @@ -386,9 +386,9 @@ void FMOPNA_2612_Clock(fmopna_2612_t* chip, int clk) #ifdef FMOPNA_YM2608 if (chip->mclk1) { - int addr2d = chip->write0_en && ADDRESS_MATCH(0x2d); - int addr2e = chip->write0_en && ADDRESS_MATCH(0x2e); - int addr2f = chip->write0_en && ADDRESS_MATCH(0x2f); + int addr2d = chip->write2_en && ADDRESS_MATCH(0x2d); + int addr2e = chip->write2_en && ADDRESS_MATCH(0x2e); + int addr2f = chip->write2_en && ADDRESS_MATCH(0x2f); chip->prescaler_sel[0] = chip->prescaler_sel[1]; if (addr2f) chip->prescaler_sel[0] = 0;