From 653e58369505e16d187c179a337010f72e5a7239 Mon Sep 17 00:00:00 2001 From: NewRisingSun <8vytz1+dhp372pv94ebg@sharklasers.com> Date: Thu, 28 Jul 2022 21:20:25 +0200 Subject: [PATCH] Mapper 460: Add alternative DIP switch/solder pad functionality --- src/boards/460.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/boards/460.c b/src/boards/460.c index 7cbd782..0422a5c 100644 --- a/src/boards/460.c +++ b/src/boards/460.c @@ -30,7 +30,7 @@ static DECLFR(Mapper460_ReadOB) static void Mapper460_PRGWrap(uint32 A, uint8 V) { int prgAND =0x0F; int prgOR =EXPREGS[0] <<4; - if (EXPREGS[0] &0x20) { + if (EXPREGS[0] &0x20 && (EXPREGS[0] !=0x20 || ~EXPREGS[1] &1)) { /* Menu selection by selectively connecting CPU D7 to reg or not */ if (~A &0x4000) { setprg8(A, (EXPREGS[0] &0x10? ~2: ~0) &V &prgAND | prgOR &~prgAND); setprg8(A |0x4000, (EXPREGS[0] &0x10? 2: 0) |V &prgAND | prgOR &~prgAND);