From 3dcc4b3c42100bfd2ec152b6255ea4fd0a1e14ce Mon Sep 17 00:00:00 2001 From: Marc Parsons Date: Fri, 8 May 2026 16:35:04 +0100 Subject: [PATCH] Fixed AY Audio failure in last commit --- Core/Io/IO_Bus.cs | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/Core/Io/IO_Bus.cs b/Core/Io/IO_Bus.cs index 2fc8c1c..b7386d4 100644 --- a/Core/Io/IO_Bus.cs +++ b/Core/Io/IO_Bus.cs @@ -97,16 +97,16 @@ namespace Core.Io //{ // _memory.HandlePaging(0x1FFD, portValue); //} - //// AY-3-8912 Register Select (Port 0xFFFD) - //if ((portAddress & 0xC002) == 0xC000) - //{ - // AyChip.SelectRegister(portValue); - //} - //// AY-3-8912 Data Write (Port 0xBFFD) - //else if ((portAddress & 0xC002) == 0x8000) - //{ - // AyChip.WriteRegister(portValue); - //} + // AY-3-8912 Register Select (Port 0xFFFD) + if ((portAddress & 0xC002) == 0xC000) + { + AyChip.SelectRegister(portValue); + } + // AY-3-8912 Data Write (Port 0xBFFD) + else if ((portAddress & 0xC002) == 0x8000) + { + AyChip.WriteRegister(portValue); + } } } } \ No newline at end of file