From 7fb931a5adbce4b1ef16b12ff46a8a6fc28c6a9c Mon Sep 17 00:00:00 2001 From: negativeExponent <54053706+negativeExponent@users.noreply.github.com> Date: Fri, 4 Feb 2022 23:45:47 +0800 Subject: [PATCH] Update 8237.cpp Fix incorrect address mask for UNL8237A write registers. The game Lion Kings writes to 0x5010/0x5080. --- src/boards/8237.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/boards/8237.cpp b/src/boards/8237.cpp index 38077690..09679707 100644 --- a/src/boards/8237.cpp +++ b/src/boards/8237.cpp @@ -19,7 +19,6 @@ * * Super Game (Sugar Softec) protected mapper * Pocahontas 2 (Unl) [U][!], etc. - * TODO: 9in1 LION KING HANGS! */ #include "mapinc.h" @@ -139,7 +138,7 @@ static DECLFW(UNL8237Write) { } static DECLFW(UNL8237ExWrite) { - switch (A) { + switch (A & 0xF007) { case 0x5000: EXPREGS[0] = V; FixMMC3PRG(MMC3_cmd); break; case 0x5001: EXPREGS[1] = V; FixMMC3PRG(MMC3_cmd); FixMMC3CHR(MMC3_cmd); break; case 0x5007: EXPREGS[2] = V; break;