[NES] Added mapper 38

[NES] Added mapper 38, tested working
This commit is contained in:
nsx0r 2023-04-15 16:12:41 +02:00 committed by GitHub
parent e47f935b2e
commit c851a3c011
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -61,6 +61,7 @@ static const byte PROGMEM mapsize[] = {
35, 0, 7, 1, 8, 0, 0, // J.Y. Company ASIC [UNLICENSED]
36, 0, 3, 1, 5, 0, 0, // TXC 01-22000-400 Board [UNLICENSED]
37, 4, 4, 6, 6, 0, 0, // (super mario bros + tetris + world cup)
38, 1, 3, 0, 3, 0, 0, // Crime Busters [UNLICENSED]
42, 0, 3, 0, 5, 0, 0, // hacked FDS games converted to cartridge [UNLICENSED]
45, 3, 6, 0, 8, 0, 0, // ga23c asic multicart [UNLICENSED]
46, 1, 6, 0, 8, 0, 0, // Rumble Station [UNLICENSED]
@ -2902,6 +2903,16 @@ void readPRG(boolean readrom) {
dumpPRG(base, address);
}
break;
case 38:
banks = int_pow(2, prgsize) / 2;
for (int i = 0; i < banks; i++) {
write_prg_byte(0x7000, i);
for (word address = 0x0; address < 0x8000; address += 512) {
dumpPRG(base, address);
}
}
break;
case 42:
banks = int_pow(2, prgsize) * 2;
@ -4038,6 +4049,16 @@ void readCHR(boolean readrom) {
}
}
break;
case 38:
banks = int_pow(2, chrsize) / 2;
for (int i = 0; i < banks; i++) {
write_prg_byte(0x7000, i << 2);
for (word address = 0x0; address < 0x2000; address += 512) {
dumpCHR(address);
}
}
break;
case 42:
banks = int_pow(2, chrsize);