From 09b8ef283018b163dcc140065f5d490b16424bcd Mon Sep 17 00:00:00 2001 From: NewRisingSun <8vytz1+dhp372pv94ebg@sharklasers.com> Date: Mon, 27 Mar 2023 15:50:50 +0200 Subject: [PATCH] M200: Add submapper 1. --- src/boards/addrlatch.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/boards/addrlatch.c b/src/boards/addrlatch.c index 5dcd663..a315d7f 100644 --- a/src/boards/addrlatch.c +++ b/src/boards/addrlatch.c @@ -254,13 +254,14 @@ void Mapper92_Init(CartInfo *info) { /*------------------ Map 200 ---------------------------*/ static void M200Sync(void) { - setprg16(0x8000, latche & 7); - setprg16(0xC000, latche & 7); - setchr8(latche & 7); - setmirror(((latche >> 3) & 1) ^ 1); + setprg16(0x8000, latche); + setprg16(0xC000, latche); + setchr8(latche); + setmirror(latche &(submapper ==1? 4: 8)? MI_H: MI_V); } void Mapper200_Init(CartInfo *info) { + submapper = info->submapper; Latch_Init(info, M200Sync, NULL, 0xFFFF, 0x8000, 0xFFFF, 0); }