From 583a44dfd84e78b0689812391011b7ba75be8253 Mon Sep 17 00:00:00 2001 From: negativeExponent Date: Thu, 23 Jan 2020 07:49:08 +0800 Subject: [PATCH] Update mapper 213 --- src/boards/addrlatch.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/boards/addrlatch.c b/src/boards/addrlatch.c index 473559e..878e7a3 100644 --- a/src/boards/addrlatch.c +++ b/src/boards/addrlatch.c @@ -345,8 +345,14 @@ void Mapper212_Init(CartInfo *info) { /*------------------ Map 213 ---------------------------*/ static void M213Sync(void) { + if(latche & 0x40) { + setprg16(0x8000, (latche & 7)); + setprg16(0xC000, (latche & 7)); + } else { setprg32(0x8000, (latche >> 1) & 3); + } setchr8((latche >> 3) & 7); + setmirror(((latche & 1)^((latche >> 6) & 1)) ^ 1); } void Mapper213_Init(CartInfo *info) {