From afbde96fe57774238115e3e8a766cff4751b3601 Mon Sep 17 00:00:00 2001 From: adelikat Date: Fri, 20 Jul 2012 02:57:46 +0000 Subject: [PATCH] NES - fix some chr mapping logic in Mapper 57 --- BizHawk.Emulation/Consoles/Nintendo/NES/Boards/Mapper057.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/BizHawk.Emulation/Consoles/Nintendo/NES/Boards/Mapper057.cs b/BizHawk.Emulation/Consoles/Nintendo/NES/Boards/Mapper057.cs index 8281d9e792..cf97f6d386 100644 --- a/BizHawk.Emulation/Consoles/Nintendo/NES/Boards/Mapper057.cs +++ b/BizHawk.Emulation/Consoles/Nintendo/NES/Boards/Mapper057.cs @@ -83,13 +83,16 @@ namespace BizHawk.Emulation.Consoles.Nintendo { if (addr == 0) { - chr_reg = (value & 0x07) | ((value & 0x40) >> 3); + chr_reg |= value & 0x07; + chr_reg &= ~0x08; + chr_reg &= (value & 0x40) >> 3; } else if ((addr & 0x800) > 0) { prg_reg = (value >> 5) & 0x07; prg_mode = value.Bit(4); chr_reg |= (value & 0x07); + if (addr.Bit(3)) { SetMirrorType(EMirrorType.Horizontal);