Merge pull request #1062 from p0ojisan/nes-prg-address-offset-fix

Fix NES PRG address for mapper 24/26/78
This commit is contained in:
nsx0r 2025-01-07 05:28:47 +00:00 committed by GitHub
commit de9e6b7d4b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -2095,7 +2095,7 @@ void readPRG(bool readrom) {
banks = int_pow(2, prgsize);
for (size_t i = 0; i < banks; i++) { // 128K
write_prg_byte(0x8000, i);
dumpBankPRG(0x2000, 0x4000, base); // 16K Banks ($8000-$BFFF)
dumpBankPRG(0x0, 0x4000, base); // 16K Banks ($8000-$BFFF)
}
break;