From d6d5b44a350dfe683a4aa695fab2404bf2430cb9 Mon Sep 17 00:00:00 2001 From: Alexey 'Cluster' Avdyukhin Date: Mon, 5 Dec 2022 21:56:50 +0400 Subject: [PATCH] Mapper 268, submappers 2,3 fix --- src/boards/coolboy.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/boards/coolboy.cpp b/src/boards/coolboy.cpp index 93b25025..6430d9a5 100644 --- a/src/boards/coolboy.cpp +++ b/src/boards/coolboy.cpp @@ -201,7 +201,7 @@ static DECLFW(COOLBOYWrite) { // Deny any further writes when 7th bit is 1 AND 4th is 0 if ((EXPREGS[3] & 0x90) != 0x80) { EXPREGS[A & 3] = V; - if (flag23) Submapper23Flip(); + if (flag23 && (A & 3) == 1) Submapper23Flip(); FixMMC3PRG(MMC3_cmd); FixMMC3CHR(MMC3_cmd); } @@ -217,7 +217,7 @@ static DECLFW(MINDKIDSWrite) { // Deny any further writes when 7th bit is 1 AND 4th is 0 if ((EXPREGS[3] & 0x90) != 0x80) { EXPREGS[A & 3] = V; - if (flag23) Submapper23Flip(); + if (flag23 && (A & 3) == 1) Submapper23Flip(); FixMMC3PRG(MMC3_cmd); FixMMC3CHR(MMC3_cmd); }