From 0cd769222bb4d4b0e72591cf849c1b9f617f1c27 Mon Sep 17 00:00:00 2001 From: alyosha-tas Date: Wed, 24 Nov 2021 15:57:54 -0500 Subject: [PATCH] A7800: fix off pixel detection in write mode, fixes baby pac man --- src/BizHawk.Emulation.Cores/Consoles/Atari/A7800Hawk/Maria.cs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/BizHawk.Emulation.Cores/Consoles/Atari/A7800Hawk/Maria.cs b/src/BizHawk.Emulation.Cores/Consoles/Atari/A7800Hawk/Maria.cs index 3916028a18..e207c4b09b 100644 --- a/src/BizHawk.Emulation.Cores/Consoles/Atari/A7800Hawk/Maria.cs +++ b/src/BizHawk.Emulation.Cores/Consoles/Atari/A7800Hawk/Maria.cs @@ -216,8 +216,6 @@ namespace BizHawk.Emulation.Cores.Atari.A7800Hawk } BG_latch_1 = Core.Maria_regs[0]; - - color = line_ram[local_GFX_index, pixel]; if (disp_mode == 0) @@ -620,7 +618,7 @@ namespace BizHawk.Emulation.Cores.Atari.A7800Hawk temp_check = (byte)(((temp_byte & 0x3) << 2) + ((temp_byte >> 4) & 0x3)); } - if ((temp_check & 3) != 0) + if ((temp_check & 0xF) != 0) { line_ram[GFX_index, (temp_start + z) % 512] = temp_check; line_ram[GFX_index, (temp_start + z) % 512] += (byte)((GFX_Objects[header_counter].palette & 4) << 2);