added NES mapper 79

added NES mapper 79: NINA-03 and NINA-06 circuit boards, produced by American Video Entertainment.
tested working with Deathbots and Dudes with Attitude
This commit is contained in:
nsx0r 2022-10-12 19:49:32 +02:00 committed by GitHub
parent e4adfce8dd
commit 3bbad14bb8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -71,6 +71,7 @@ static const byte PROGMEM mapsize [] = {
76, 3, 3, 5, 5, 0, 0, // namco 109 variant (megami tensei: digital devil story) 76, 3, 3, 5, 5, 0, 0, // namco 109 variant (megami tensei: digital devil story)
77, 3, 3, 3, 3, 0, 0, // (napoleon senki) 77, 3, 3, 3, 3, 0, 0, // (napoleon senki)
78, 3, 3, 5, 5, 0, 0, // irem 74hc161/32 78, 3, 3, 5, 5, 0, 0, // irem 74hc161/32
79, 1, 2, 2, 3, 0, 0, // NINA-03/06 by AVE [UNLICENSED]
80, 3, 3, 5, 6, 0, 1, // taito x1-005 [prgram r/w] 80, 3, 3, 5, 6, 0, 1, // taito x1-005 [prgram r/w]
82, 3, 3, 5, 6, 0, 1, // taito x1-017 [prgram r/w] 82, 3, 3, 5, 6, 0, 1, // taito x1-017 [prgram r/w]
85, 3, 5, 0, 5, 0, 1, // vrc7 [sram r/w] 85, 3, 5, 0, 5, 0, 1, // vrc7 [sram r/w]
@ -3344,6 +3345,16 @@ void readPRG(boolean readrom) {
} }
break; break;
case 79:
banks = int_pow(2, prgsize) / 2;
for (int i = 0; i < banks; i++) {
write_prg_byte(0x4100, i << 3);
for (word address = 0x0; address < 0x8000; address += 512) {
dumpPRG(base, address);
}
}
break;
case 80: // 128K case 80: // 128K
case 207: // 256K [CART SOMETIMES NEEDS POWERCYCLE] case 207: // 256K [CART SOMETIMES NEEDS POWERCYCLE]
banks = int_pow(2, prgsize) * 2; banks = int_pow(2, prgsize) * 2;
@ -3919,6 +3930,16 @@ void readCHR(boolean readrom) {
} }
} }
break; break;
case 79:
banks = int_pow(2, chrsize) / 2;
for (int i = 0; i < banks; i++) {
write_prg_byte(0x4100, i);
for (word address = 0x0; address < 0x2000; address += 512) {
dumpCHR(address);
}
}
break;
case 80: // 128K/256K case 80: // 128K/256K
case 82: // 128K/256K case 82: // 128K/256K