mirror of
https://github.com/sanni/cartreader.git
synced 2025-02-28 02:23:33 +01:00
Update NES.ino - mapper 552 typo fix
mapper 552 typo fix
This commit is contained in:
parent
1e24b47329
commit
d5252f2211
@ -2749,7 +2749,7 @@ void readPRG(bool readrom) {
|
|||||||
case 552:
|
case 552:
|
||||||
banks = int_pow(2, prgsize) * 2;
|
banks = int_pow(2, prgsize) * 2;
|
||||||
for (size_t i = 0; i < banks; i++) {
|
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)
|
dumpBankPRG(0x0, 0x2000, base); // 8K Banks ($8000-$BFFF)
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user