From 02f8077408024862a61c3b1c862e2e818b675759 Mon Sep 17 00:00:00 2001 From: NewRisingSun <8vytz1+dhp372pv94ebg@sharklasers.com> Date: Sun, 8 Feb 2026 11:42:37 +0100 Subject: [PATCH] Add mapper 571 submapper 1. --- src/boards/571.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/boards/571.c b/src/boards/571.c index c759426..6189f65 100644 --- a/src/boards/571.c +++ b/src/boards/571.c @@ -23,6 +23,7 @@ #include "mapinc.h" #include "asic_vrc2and4.h" +static uint8 submapper; static uint8 reg; static void sync () { @@ -33,7 +34,7 @@ static void sync () { if (reg &0x20) VRC24_syncPRG(prgAND, prgOR &~prgAND); else - if (reg &0x6) + if (submapper == 0 && reg &0x06 || submapper == 1 && reg &0x02 && reg &0x04) setprg32(0x8000, reg >>1); else { setprg16(0x8000, reg); @@ -65,6 +66,7 @@ static void power () { } void Mapper571_Init (CartInfo *info) { + submapper = info->submapper; VRC4_init(info, sync, 4, 8, 1, NULL, NULL, NULL, writeReg, NULL); info->Power = power; info->Reset = reset;