mirror of
https://github.com/AppleWin/AppleWin.git
synced 2025-01-27 04:31:44 +00:00
Phasor: support reading AY8913 regs for Echo+ mode
This commit is contained in:
parent
bcdaa3e1c1
commit
13ee80686c
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user