From 67905aee5ad610cab00a44fcfa0c9c7a4dbd72a6 Mon Sep 17 00:00:00 2001 From: nsx0r Date: Wed, 12 Oct 2022 22:11:35 +0200 Subject: [PATCH] added mapper 146 not tested but identical to mapper 79 according to https://www.nesdev.org/wiki/NINA-003-006 --- Cart_Reader/NES.ino | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Cart_Reader/NES.ino b/Cart_Reader/NES.ino index 5938b29..0b6538c 100644 --- a/Cart_Reader/NES.ino +++ b/Cart_Reader/NES.ino @@ -89,6 +89,7 @@ static const byte PROGMEM mapsize [] = { 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 + 146, 1, 2, 2, 3, 0, 0, // Sachen 3015 [UNLICENSED] 152, 2, 3, 5, 5, 0, 0, 153, 5, 5, 0, 0, 1, 1, // (famicom jump ii) [sram r/w] 154, 3, 3, 5, 5, 0, 0, // namcot-3453 (devil man) @@ -3346,6 +3347,7 @@ void readPRG(boolean readrom) { break; case 79: + case 146: banks = int_pow(2, prgsize) / 2; for (int i = 0; i < banks; i++) { write_prg_byte(0x4100, i << 3); @@ -3932,6 +3934,7 @@ void readCHR(boolean readrom) { break; case 79: + case 146: banks = int_pow(2, chrsize) / 2; for (int i = 0; i < banks; i++) { write_prg_byte(0x4100, i);