From 869cb56472c5a69bb52ccee7e31d8c657da9be73 Mon Sep 17 00:00:00 2001 From: NewRisingSun <8vytz1+dhp372pv94ebg@sharklasers.com> Date: Tue, 9 Sep 2025 12:41:15 +0200 Subject: [PATCH] Add mapper 61 submapper 1. --- src/boards/addrlatch.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/boards/addrlatch.c b/src/boards/addrlatch.c index 48eb759..d2bb821 100644 --- a/src/boards/addrlatch.c +++ b/src/boards/addrlatch.c @@ -181,7 +181,10 @@ static void M61Sync(void) { setprg16(0xC000, latche <<1 &0x1E | latche >>5 &0x01); } else setprg32(0x8000, latche & 0xF); - setchr8(latche >> 8); + if (submapper == 1) + setchr8(latche >> 7 &~1 | latche >> 6 &1); + else + setchr8(latche >> 8); setmirror(((latche >> 7) & 1) ^ 1); } @@ -193,6 +196,7 @@ void Mapper61_Reset() { } void Mapper61_Init(CartInfo *info) { + submapper = info->submapper; Latch_Init(info, M61Sync, NULL, 0x0000, 0x8000, 0xFFFF, 0); info->Reset = Mapper61_Reset; }