Add mapper 504.

This commit is contained in:
NewRisingSun
2025-09-08 23:14:17 +02:00
parent 5a1cabfda8
commit 2c0c3c1876
4 changed files with 68 additions and 1 deletions

View File

@@ -45,7 +45,7 @@ static void sync() {
static int getPRGBank(uint8 bank) {
if (reg[1] &0x40) {
int mask = reg[1] &(submapper == 2? 0x20: 0x80)? 3: 1;
return MMC3_getPRGBank(bank & 1) &~mask | bank &mask;
return MMC3_getPRGBank(bank &1) &~mask | bank &mask;
} else
return MMC3_getPRGBank(bank);
}