From bb63d912c93a6816fb5d489ea0e977f0ab561cac Mon Sep 17 00:00:00 2001 From: nsx0r Date: Sun, 2 Oct 2022 13:25:33 +0200 Subject: [PATCH] fixed mapper 30 tested working with multiple NES and FC carts using UNROM-512 --- 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 93e3f76..5340943 100644 --- a/Cart_Reader/NES.ino +++ b/Cart_Reader/NES.ino @@ -3039,9 +3039,9 @@ void readPRG(boolean readrom) { banks = int_pow(2, prgsize); for (int i = 0; i < banks; i++) { // 256K/512K if (flashfound) - write_prg_byte(0xC000, i); // Flashable + write_prg_byte(0xC000+i, i); // Flashable else - write_prg_byte(0x8000, i); // Non-Flashable + write_prg_byte(0x8000+i, i); // Non-Flashable for (word address = 0x0; address < 0x4000; address += 512) { // 16K Banks ($8000-$BFFF) dumpPRG(base, address); }