Mapper 268, submappers 2,3 fix

This commit is contained in:
Alexey 'Cluster' Avdyukhin 2022-12-05 21:56:50 +04:00
parent 7a64e06b88
commit d6d5b44a35
1 changed files with 2 additions and 2 deletions

View File

@ -201,7 +201,7 @@ static DECLFW(COOLBOYWrite) {
// Deny any further writes when 7th bit is 1 AND 4th is 0 // Deny any further writes when 7th bit is 1 AND 4th is 0
if ((EXPREGS[3] & 0x90) != 0x80) { if ((EXPREGS[3] & 0x90) != 0x80) {
EXPREGS[A & 3] = V; EXPREGS[A & 3] = V;
if (flag23) Submapper23Flip(); if (flag23 && (A & 3) == 1) Submapper23Flip();
FixMMC3PRG(MMC3_cmd); FixMMC3PRG(MMC3_cmd);
FixMMC3CHR(MMC3_cmd); FixMMC3CHR(MMC3_cmd);
} }
@ -217,7 +217,7 @@ static DECLFW(MINDKIDSWrite) {
// Deny any further writes when 7th bit is 1 AND 4th is 0 // Deny any further writes when 7th bit is 1 AND 4th is 0
if ((EXPREGS[3] & 0x90) != 0x80) { if ((EXPREGS[3] & 0x90) != 0x80) {
EXPREGS[A & 3] = V; EXPREGS[A & 3] = V;
if (flag23) Submapper23Flip(); if (flag23 && (A & 3) == 1) Submapper23Flip();
FixMMC3PRG(MMC3_cmd); FixMMC3PRG(MMC3_cmd);
FixMMC3CHR(MMC3_cmd); FixMMC3CHR(MMC3_cmd);
} }