Add mapper 61 submapper 1.

This commit is contained in:
NewRisingSun
2025-09-09 12:41:15 +02:00
parent bb4d5490e2
commit 869cb56472

View File

@@ -181,6 +181,9 @@ static void M61Sync(void) {
setprg16(0xC000, latche <<1 &0x1E | latche >>5 &0x01); setprg16(0xC000, latche <<1 &0x1E | latche >>5 &0x01);
} else } else
setprg32(0x8000, latche & 0xF); setprg32(0x8000, latche & 0xF);
if (submapper == 1)
setchr8(latche >> 7 &~1 | latche >> 6 &1);
else
setchr8(latche >> 8); setchr8(latche >> 8);
setmirror(((latche >> 7) & 1) ^ 1); setmirror(((latche >> 7) & 1) ^ 1);
} }
@@ -193,6 +196,7 @@ void Mapper61_Reset() {
} }
void Mapper61_Init(CartInfo *info) { void Mapper61_Init(CartInfo *info) {
submapper = info->submapper;
Latch_Init(info, M61Sync, NULL, 0x0000, 0x8000, 0xFFFF, 0); Latch_Init(info, M61Sync, NULL, 0x0000, 0x8000, 0xFFFF, 0);
info->Reset = Mapper61_Reset; info->Reset = Mapper61_Reset;
} }