From 1deea6c93cdcf5158b032683f426a06dd1bfa8d5 Mon Sep 17 00:00:00 2001 From: libretroadmin Date: Tue, 27 Feb 2024 13:38:55 +0100 Subject: [PATCH] Restore mapper 333 --- src/mappers/mapper333.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/mappers/mapper333.c b/src/mappers/mapper333.c index 6018f105..fb6c4ed3 100644 --- a/src/mappers/mapper333.c +++ b/src/mappers/mapper333.c @@ -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); } } @@ -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"); }