Mapper 460: Add alternative DIP switch/solder pad functionality

This commit is contained in:
NewRisingSun
2022-07-28 21:20:25 +02:00
parent e96b1f7db8
commit 653e583695

View File

@@ -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);