From 13ee80686cd14d12b150bd40b4d4e61f7089c824 Mon Sep 17 00:00:00 2001 From: tomcw Date: Sun, 19 Feb 2023 18:28:37 +0000 Subject: [PATCH] Phasor: support reading AY8913 regs for Echo+ mode --- source/Mockingboard.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/source/Mockingboard.cpp b/source/Mockingboard.cpp index f0da2a1c..d4e5989f 100644 --- a/source/Mockingboard.cpp +++ b/source/Mockingboard.cpp @@ -263,10 +263,7 @@ void MockingboardCard::AY8910_Write(BYTE subunit, BYTE ay, BYTE value) break; case AY_READ: // 5: READ FROM PSG (need to set DDRA to input) - if (m_phasorEnable && m_phasorMode == PH_EchoPlus) - r6522.SetRegORA( 0xff & (r6522.GetReg(SY6522::rDDRA) ^ 0xff) ); // Phasor (Echo+ mode) doesn't support reading AY8913s - it just reads 1's for the input bits - else - r6522.SetRegORA( AYReadReg(subunit, ay, pMB->nAYCurrentRegister) & (r6522.GetReg(SY6522::rDDRA) ^ 0xff) ); + r6522.SetRegORA( AYReadReg(subunit, ay, pMB->nAYCurrentRegister) & (r6522.GetReg(SY6522::rDDRA) ^ 0xff) ); break; case AY_WRITE: // 6: WRITE TO PSG