From df0f4356eca8642b535ea8ee9ebf118dc7873780 Mon Sep 17 00:00:00 2001 From: tomcw Date: Sun, 5 Mar 2023 21:09:08 +0000 Subject: [PATCH] Fix so that MB can still read AY regs after setting INACTIVE state (#1193) --- source/Mockingboard.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/Mockingboard.cpp b/source/Mockingboard.cpp index 1ca3434e..45903495 100644 --- a/source/Mockingboard.cpp +++ b/source/Mockingboard.cpp @@ -339,7 +339,7 @@ void MockingboardCard::AY8910_Write(BYTE subunit, BYTE ay, BYTE value) state = nAYFunc; - if (state == AY_INACTIVE) + if (state == AY_INACTIVE && m_phasorEnable) // Assume Phasor(even in MB mode) will read PortA inputs as high. r6522.UpdatePortAForHiZ(); // Float high any PortA input bits (GH#1193) } }