From 7264477bc1255bb8e82e30df6a17e9d97935e195 Mon Sep 17 00:00:00 2001 From: nsx0r Date: Fri, 21 Oct 2022 00:43:45 +0200 Subject: [PATCH] added NES mapper 242 added NES mapper 242, tested working with "1992" 190-in-1 multicart (ET-113 PCB), both on FC and NES --- Cart_Reader/NES.ino | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/Cart_Reader/NES.ino b/Cart_Reader/NES.ino index a248d13..a89df68 100644 --- a/Cart_Reader/NES.ino +++ b/Cart_Reader/NES.ino @@ -106,6 +106,7 @@ static const byte PROGMEM mapsize[] = { 207, 4, 4, 5, 5, 0, 0, // taito x1-005 variant (fudou myouou den) 210, 3, 5, 5, 6, 0, 0, // namco 175/340 235, 6, 8, 0, 0, 0, 0, // "Golden Game" multicarts [UNLICENSED] + 242, 5, 5, 0, 0, 0, 0, // ET-113 [UNLICENSED] }; /****************************************** @@ -3509,6 +3510,21 @@ void readPRG(boolean readrom) { } } break; + + case 242: // total size is 640k THIS IS NORMAL + for (int i = 0; i < 32; i++) { // dump 1st chip of 512k + write_prg_byte(0x8400 + (i * 4), 0); + for (word address = 0x0; address < 0x4000; address += 512) { + dumpPRG(base, address); + } + } + for (int i = 0; i < 8; i++) { // dump 2nd chip of 128k + write_prg_byte(0x8000 + (i * 4), 0); + for (word address = 0x0; address < 0x4000; address += 512) { + dumpPRG(base, address); + } + } + break; } if (!readrom) { myFile.flush();