From a907bb7f01b0cfc6bab74cdec35d5a0ef5d20179 Mon Sep 17 00:00:00 2001 From: alyosha-tas Date: Fri, 25 Aug 2017 11:04:50 -0400 Subject: [PATCH] A7800Hawk: update mapper for pokey Needed for Ball Blazer --- .../Consoles/Atari/A7800Hawk/Mappers/MapperDefault.cs | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/BizHawk.Emulation.Cores/Consoles/Atari/A7800Hawk/Mappers/MapperDefault.cs b/BizHawk.Emulation.Cores/Consoles/Atari/A7800Hawk/Mappers/MapperDefault.cs index 509c6c2e00..6b1b627a33 100644 --- a/BizHawk.Emulation.Cores/Consoles/Atari/A7800Hawk/Mappers/MapperDefault.cs +++ b/BizHawk.Emulation.Cores/Consoles/Atari/A7800Hawk/Mappers/MapperDefault.cs @@ -31,6 +31,10 @@ namespace BizHawk.Emulation.Cores.Atari.A7800Hawk return Core.RAM[0x800 + addr & 0x7FF]; } } + else if (addr < 0x8000 && Core.is_pokey) + { + return Core.pokey.ReadReg(addr & 0xF); + } else { // cartridge and other OPSYS @@ -75,8 +79,12 @@ namespace BizHawk.Emulation.Cores.Atari.A7800Hawk Core.RAM[0x800 + addr & 0x7FF] = value; } } - else + else if (addr < 0x8000 && Core.is_pokey) { + Core.pokey.WriteReg(addr & 0xF, value); + } + else + { // cartridge and other OPSYS } }