Updated mapper 460

This commit is contained in:
NewRisingSun
2025-03-31 23:45:49 +02:00
committed by LibretroAdmin
parent 435a22a568
commit ebad4b9f13

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 && (EXPREGS[0] !=0x20 || ~EXPREGS[1] &1)) { /* Menu selection by selectively connecting CPU D7 to reg or not */
if (EXPREGS[0] &0x38) { /* 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);