Skip to content

Commit

Permalink
Update NES.ino - mapper 552 typo fix
Browse files Browse the repository at this point in the history
mapper 552 typo fix
  • Loading branch information
nsx0r authored Sep 11, 2024
1 parent 1e24b47 commit d5252f2
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 @@ -2749,7 +2749,7 @@ void readPRG(bool readrom) {
case 552:
banks = int_pow(2, prgsize) * 2;
for (size_t i = 0; i < banks; i++) {
write_prg_byte(0x7EFA, ((i & 0x01) << 5) | ((i & 0x02) << 3) | ((i & 0x04) << 1) | ((i & 0x08) >> 2) | ((i & 0x10) >> 3) | ((i & 0x20) >> 5)); // PRG Bank 0 ($8000-$9FFF)
write_prg_byte(0x7EFA, ((i & 0x01) << 5) | ((i & 0x02) << 3) | ((i & 0x04) << 1) | ((i & 0x08) >> 1) | ((i & 0x10) >> 3) | ((i & 0x20) >> 5)); // PRG Bank 0 ($8000-$9FFF)
dumpBankPRG(0x0, 0x2000, base); // 8K Banks ($8000-$BFFF)
}
break;
Expand Down

0 comments on commit d5252f2

Please sign in to comment.