From d03005689fcc1e131740ade40d94c72fefa56c6b Mon Sep 17 00:00:00 2001 From: NewRisingSun <8vytz1+dhp372pv94ebg@sharklasers.com> Date: Mon, 21 Mar 2022 16:10:51 +0100 Subject: [PATCH] Mapper 341: correct mirroring --- src/boards/addrlatch.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/boards/addrlatch.c b/src/boards/addrlatch.c index e9bf8b4..dda64dd 100644 --- a/src/boards/addrlatch.c +++ b/src/boards/addrlatch.c @@ -658,13 +658,12 @@ void BMCG146_Init(CartInfo *info) { /* NES 2.0 mapper 341 is used for a simple 4-in-1 multicart */ static void BMCTJ03Sync(void) { - uint8 mirr = ((latche >> 1) & 1) ^ 1; - uint8 bank = (latche >> 8) & 7; + uint8 mirr = latche &(PRGsize[0] &0x40000? 0x800: 0x200)? MI_H: MI_V; + uint8 bank = latche >> 8; setprg32(0x8000, bank); setchr8(bank); - if (bank == 3) mirr ^= 1; /* Twin Bee has incorrect mirroring */ setmirror(mirr); }