mirror of
https://github.com/sanni/cartreader.git
synced 2024-12-28 14:01:52 +01:00
Update NES.ino - fix mapper 80+82
fix mapper 80+82
This commit is contained in:
parent
5cbbfa6b68
commit
6cbc8a59cf
@ -2294,10 +2294,9 @@ void readPRG(bool readrom) {
|
||||
|
||||
case 82: // 128K
|
||||
banks = int_pow(2, prgsize) * 2;
|
||||
for (size_t i = 0; i < banks; i += 2) {
|
||||
for (size_t i = 0; i < banks; i++) {
|
||||
write_prg_byte(0x7EFA, i << 2); // PRG Bank 0 ($8000-$9FFF)
|
||||
write_prg_byte(0x7EFB, (i + 1) << 2); // PRG Bank 1 ($A000-$BFFF)
|
||||
dumpBankPRG(0x0, 0x4000, base); // 8K Banks ($8000-$BFFF)
|
||||
dumpBankPRG(0x0, 0x2000, base); // 8K Banks ($8000-$BFFF)
|
||||
}
|
||||
break;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user