From 6cbc8a59cf871ffdcc1b1484156a7ed40feb7d01 Mon Sep 17 00:00:00 2001 From: nsx0r Date: Wed, 28 Aug 2024 20:03:00 +0000 Subject: [PATCH] Update NES.ino - fix mapper 80+82 fix mapper 80+82 --- Cart_Reader/NES.ino | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/Cart_Reader/NES.ino b/Cart_Reader/NES.ino index 59f5d2a..922d659 100644 --- a/Cart_Reader/NES.ino +++ b/Cart_Reader/NES.ino @@ -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;