diff options
author | nsx0r <[email protected]> | 2022-12-14 21:46:39 +0100 |
---|---|---|
committer | GitHub <[email protected]> | 2022-12-14 21:46:39 +0100 |
commit | 2d3eeed53acb444b8b283e712da0141b88c38d2e (patch) | |
tree | 60ba183db6daf228f02b876bb9e7f04207d50570 | |
parent | 642d58200234e6e914aa47bc52a92a88ff01153d (diff) | |
download | cartreader-2d3eeed53acb444b8b283e712da0141b88c38d2e.tar.gz cartreader-2d3eeed53acb444b8b283e712da0141b88c38d2e.zip |
fixed mapper 23
fixed mapper 23, tested working with Ganbare Goemon 2
-rw-r--r-- | Cart_Reader/NES.ino | 13 |
1 files changed, 12 insertions, 1 deletions
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 |