From 76f40218d05385e4f804e2f25adbd71c5f1aba84 Mon Sep 17 00:00:00 2001 From: NewRisingSun <8vytz1+dhp372pv94ebg@sharklasers.com> Date: Mon, 29 Sep 2025 23:09:42 +0200 Subject: [PATCH] Mapper 498: Add 1MiB+1MiB variant. --- src/boards/498.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/boards/498.c b/src/boards/498.c index 000005a..6befb42 100644 --- a/src/boards/498.c +++ b/src/boards/498.c @@ -27,15 +27,15 @@ static uint8 reg; static void sync () { if (reg &0x20) - MMC1_syncPRG(0x07, reg &~0x07); + MMC1_syncPRG(0x07, reg >>1 &0x20 | reg &0x18); else - if (reg &0x04) + if (reg &0x05) setprg32(0x8000, reg >>1); else { setprg16(0x8000, reg); setprg16(0xC000, reg); } - MMC1_syncCHR(0x1F, reg <<2 &~0x1F); + MMC1_syncCHR(0x1F, reg <<1 &0x80 | reg <<2 &0x60); MMC1_syncMirror(); }