From 8e7e97f82cfcaef560decb4b70630ede14e33d29 Mon Sep 17 00:00:00 2001 From: NewRisingSun <8vytz1+dhp372pv94ebg@sharklasers.com> Date: Mon, 31 Mar 2025 00:35:53 +0200 Subject: [PATCH] Update mapper 285 --- src/boards/datalatch.c | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/src/boards/datalatch.c b/src/boards/datalatch.c index d51dd3f..c3f2363 100644 --- a/src/boards/datalatch.c +++ b/src/boards/datalatch.c @@ -546,12 +546,22 @@ static void BMCA65ASSync(void) { setchr8(0); if (latche & 0x80) setmirror(MI_0 + (((latche >> 5) & 1))); - else - setmirror(((latche >> 3) & 1) ^ 1); + else { + if (A65ASsubmapper == 1) + setmirror(latche &0x08? MI_H: MI_V); + else + setmirror(latche &0x20? MI_H: MI_V); + } +} + +void BMCA65AS_Reset() { + latche =0; + BMCA65ASSync(); } void BMCA65AS_Init(CartInfo *info) { A65ASsubmapper = info->submapper; + info->Reset = BMCA65AS_Reset; Latch_Init(info, BMCA65ASSync, 0, 0x8000, 0xFFFF, 0, 0); }