From 2d3eeed53acb444b8b283e712da0141b88c38d2e Mon Sep 17 00:00:00 2001 From: nsx0r Date: Wed, 14 Dec 2022 21:46:39 +0100 Subject: [PATCH] fixed mapper 23 fixed mapper 23, tested working with Ganbare Goemon 2 --- Cart_Reader/NES.ino | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/Cart_Reader/NES.ino b/Cart_Reader/NES.ino index d0a645d..b4743d8 100644 --- a/Cart_Reader/NES.ino +++ b/Cart_Reader/NES.ino @@ -2719,7 +2719,6 @@ void readPRG(boolean readrom) { break; case 22: - case 23: case 25: case 65: case 75: // 128K/256K @@ -2732,6 +2731,18 @@ void readPRG(boolean readrom) { } } break; + + case 23: + banks = int_pow(2, prgsize) * 2; + write_prg_byte(0x9002, 0); + write_prg_byte(0x9008, 0); + for (int i = 0; i < banks; i++) { + write_prg_byte(0x8000, i); + for (word address = 0x0; address < 0x2000; address += 512) { + dumpPRG(base, address); + } + } + break; case 24: case 26: // 256K