From 16003ba507f8b6dd73d7f13aa8889b6aadb6f44a Mon Sep 17 00:00:00 2001 From: tomcw Date: Tue, 30 Jan 2024 13:51:22 +0000 Subject: [PATCH] Fix: 21 1E 04 --- source/Mockingboard.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/source/Mockingboard.cpp b/source/Mockingboard.cpp index 7398a3af..9ebb6cf6 100644 --- a/source/Mockingboard.cpp +++ b/source/Mockingboard.cpp @@ -388,7 +388,12 @@ void MockingboardCard::AY8913_Write(BYTE subunit, BYTE ay, BYTE value) state = nAYFunc; if (state == AY_INACTIVE) // Mockingboard or Phasor(any mode) will read PortA inputs as high. - pMB->SetBusState(false); + { + if (QueryType() != CT_SDMusic) + pMB->SetBusState(false); + else + m_MBSubUnit[0].SetBusState(false); + } } //-----------------------------------------------------------------------------