mirror of
https://github.com/sanni/cartreader.git
synced 2024-11-14 17:05:08 +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) {
|
||||
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)
|
||||
for (size_t i = 0; i < banks; i++) {
|
||||
write_prg_byte(0x7EFA, i << 2); // PRG Bank 0 ($8000-$9FFF)
|
||||
dumpBankPRG(0x0, 0x2000, base); // 8K Banks ($8000-$BFFF)
|
||||
}
|
||||
break;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user