Skip to content

Commit

Permalink
Merge pull request #1062 from p0ojisan/nes-prg-address-offset-fix
Browse files Browse the repository at this point in the history
Fix NES PRG address for mapper 24/26/78
  • Loading branch information
nsx0r authored Jan 7, 2025
2 parents 8ccafde + c1c04e3 commit de9e6b7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Cart_Reader/NES.ino
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit de9e6b7

Please sign in to comment.