From 0a4c82155b32d2f552f657514e4ac74f1354ef6b Mon Sep 17 00:00:00 2001 From: NewRisingSun <8vytz1+dhp372pv94ebg@sharklasers.com> Date: Sat, 25 Oct 2025 13:49:24 +0200 Subject: [PATCH] Mapper 227: Correct the behavior of submapper 2. Remove submapper 3, as it's actually just mapper 280 without the reset-based UNROM game spot populated. --- src/boards/addrlatch.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/boards/addrlatch.c b/src/boards/addrlatch.c index 040af3e..fd75151 100644 --- a/src/boards/addrlatch.c +++ b/src/boards/addrlatch.c @@ -395,10 +395,10 @@ static void M227Sync(void) { } else { if (L) { setprg16(0x8000, p); - setprg16(0xC000, submapper ==3? 0: (p | 7)); + setprg16(0xC000, p | 7); } else { setprg16(0x8000, p); - setprg16(0xC000, submapper ==2? 0: (p & 0x38)); + setprg16(0xC000, submapper ==2? (p & 0x20): (p & 0x38)); } } }