From 43669ce18177b9ee8f25a2c54afc9dce4c6aa8e5 Mon Sep 17 00:00:00 2001 From: nsx0r Date: Wed, 2 Nov 2022 12:27:08 +0100 Subject: [PATCH] addes NES mapper 111 addes NES mapper 111 --- Cart_Reader/NES.ino | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/Cart_Reader/NES.ino b/Cart_Reader/NES.ino index dac59ba..dfcde7c 100644 --- a/Cart_Reader/NES.ino +++ b/Cart_Reader/NES.ino @@ -93,6 +93,7 @@ static const byte PROGMEM mapsize[] = { 96, 3, 3, 0, 0, 0, 0, // (oeka kids) 97, 4, 4, 0, 0, 0, 0, // irem tam-s1 (kaiketsu yanchamaru) 105, 4, 4, 0, 0, 0, 0, // (nintendo world Championships 1990) [UNTESTED] + 111, 5, 5, 0, 0, 0, 0, // GTROM [UNLICENSED] 118, 3, 4, 5, 5, 0, 1, // txsrom/mmc3 [sram r/w] 119, 3, 3, 4, 4, 0, 0, // tqrom/mmc3 140, 3, 3, 3, 5, 0, 0, // jaleco jf-11/jf-14 @@ -3060,6 +3061,16 @@ void readPRG(boolean readrom) { } } break; + + case 111: + banks = int_pow(2, prgsize) / 2; + for (int i = 0; i < banks; i++) { + write_prg_byte(0x5000, i); + for (word address = 0x0; address < 0x8000; address += 512) { + dumpPRG(base, address); + } + } + break; case 153: // 512K banks = int_pow(2, prgsize);