diff options
author | nsx0r <[email protected]> | 2024-12-17 05:49:55 +0000 |
---|---|---|
committer | GitHub <[email protected]> | 2024-12-17 05:49:55 +0000 |
commit | ab6b46291929fd0e4680397fa203ada65d4f922b (patch) | |
tree | 84c88ae58da8636f1796855721e041667d428963 | |
parent | d30be9dc296ca71d5b99f97d3e17e9249cff08a6 (diff) | |
download | cartreader-ab6b46291929fd0e4680397fa203ada65d4f922b.tar.gz cartreader-ab6b46291929fd0e4680397fa203ada65d4f922b.zip |
[NES] - added mapper 470
[NES] - added mapper 470
-rw-r--r-- | Cart_Reader/NES.ino | 16 |
1 files changed, 13 insertions, 3 deletions
diff --git a/Cart_Reader/NES.ino b/Cart_Reader/NES.ino index cac21f5..64090ee 100644 --- a/Cart_Reader/NES.ino +++ b/Cart_Reader/NES.ino @@ -171,13 +171,14 @@ static const struct mapper_NES PROGMEM mapsize[] = { { 242, 5, 5, 0, 0, 0, 0 }, // ET-113 [UNLICENSED] { 246, 5, 5, 7, 7, 0, 0 }, // C&E Feng Shen Bang [UNLICENSED] // 248 - bad mapper, not used - { 255, 4, 7, 5, 8, 0, 0 }, // 110-in-1 multicart (same as 225) [UNLICENSED] + { 255, 4, 7, 5, 8, 0, 0 }, // 110-in-1 multicart (same as 225) [UNLICENSED] { 268, 0, 11, 0, 8, 0, 0 }, // 268.0 MindKids/CoolGirl [UNLICENSED] { 315, 0, 5, 0, 7, 0, 0 }, // BMC-830134C [UNLICENSED] { 329, 1, 7, 0, 0, 0, 3 }, // UNL-EDU2000, same as 177 [UNLICENSED] { 366, 0, 6, 0, 8, 0, 0 }, // GN-45 [UNLICENSED] - { 446, 0, 8, 0, 0, 0, 0 }, // Mindkids SMD172B_FGPA submapper 0 & 1 - { 552, 0, 5, 0, 6, 0, 0 } // Taito X1-017 actual bank order + { 446, 0, 8, 0, 0, 0, 0 }, // Mindkids SMD172B_FGPA submapper 0 & 1 [UNLICENSED] + { 470, 0, 11, 0, 0, 0, 0 }, // INX_007T_V01 [UNLICENSED] + { 552, 0, 5, 0, 6, 0, 0 } // Taito X1-017 actual bank order }; const char _file_name_no_number_fmt[] PROGMEM = "%s.%s"; @@ -2803,6 +2804,15 @@ void readPRG(bool readrom) { } break; + case 470: + banks = int_pow(2, prgsize) / 2; + for (size_t i = 0; i < banks; i++) { + write_prg_byte(0x5000, i >> 3); + write_prg_byte(0x8000, i & 0x07); + dumpBankPRG(0x0, 0x8000, base); + } + break; + case 552: banks = int_pow(2, prgsize) * 2; for (size_t i = 0; i < banks; i++) { |