From b2e6d27f9a9e83133aa2d794120fd045ed08e818 Mon Sep 17 00:00:00 2001 From: negativeExponent Date: Fri, 6 Mar 2020 13:58:27 +0800 Subject: [PATCH] Update chr banking in mapper 217 --- 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 e3dba77..8f2f1ba 100644 --- a/src/boards/addrlatch.c +++ b/src/boards/addrlatch.c @@ -377,8 +377,8 @@ void Mapper214_Init(CartInfo *info) { /*------------------ Map 217 ---------------------------*/ static void M217Sync(void) { - setprg32(0x8000, (latche >> 2) & 3); - setchr8(latche & 7); + setprg32(0x8000, (latche >> 2) & 0x03); + setchr8(latche & 0x0F); } void Mapper217_Init(CartInfo *info) {