From a513c4c2191b357ebca523553d4a7c257d9213ad Mon Sep 17 00:00:00 2001 From: nsx0r Date: Sun, 24 Nov 2024 21:53:44 +0000 Subject: [PATCH] Update NES.ino --- Cart_Reader/NES.ino | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Cart_Reader/NES.ino b/Cart_Reader/NES.ino index 14f8264b..b27acc6b 100644 --- a/Cart_Reader/NES.ino +++ b/Cart_Reader/NES.ino @@ -2172,8 +2172,8 @@ void readPRG(bool readrom) { case 58: case 213: - banks = int_pow(2, prgsize) / 2; - for (size_t i = 0; i < banks; i++) { + banks = int_pow(2, prgsize); + for (size_t i = 0; i < banks; i += 2) { write_prg_byte(0x8000 + (i & 0x07), 0x00); dumpBankPRG(0x0, 0x8000, base); }