Skip to content

Commit

Permalink
Restore mapper 333
Browse files Browse the repository at this point in the history
  • Loading branch information
LibretroAdmin committed Feb 27, 2024
1 parent f688992 commit 1deea6c
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/mappers/mapper333.c
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,10 @@ static DECLFW(M333Write) {
MMC3_FixPRG();
MMC3_FixCHR();
} else {
MMC3_Write(A, V);
if(A < 0xC000)
MMC3_CMDWrite(A, V);
else
MMC3_IRQWrite(A, V);
}
}

Expand All @@ -68,5 +71,5 @@ void Mapper333_Init(CartInfo *info) {
MMC3_cwrap = M333CW;
MMC3_pwrap = M333PW;
info->Power = M333Power;
AddExState(&StateRegs, ~0, 0, NULL);
AddExState(&StateRegs, 1, 0, "EXPR");
}

0 comments on commit 1deea6c

Please sign in to comment.