mirror of
https://github.com/sanni/cartreader.git
synced 2024-12-25 04:21:53 +01:00
added NES mapper 28
added NES mapper 28, tested working with 2x Action 53 cartridges
This commit is contained in:
parent
46dd333bd4
commit
36fa976b53
@ -51,6 +51,7 @@ static const byte PROGMEM mapsize[] = {
|
|||||||
24, 4, 4, 5, 5, 0, 0, // vrc6a (akumajou densetsu)
|
24, 4, 4, 5, 5, 0, 0, // vrc6a (akumajou densetsu)
|
||||||
25, 3, 4, 5, 6, 0, 1, // vrc2c/vrc4b/vrc4d [sram r/w]
|
25, 3, 4, 5, 6, 0, 1, // vrc2c/vrc4b/vrc4d [sram r/w]
|
||||||
26, 4, 4, 5, 6, 1, 1, // vrc6b [sram r/w]
|
26, 4, 4, 5, 6, 1, 1, // vrc6b [sram r/w]
|
||||||
|
28, 5, 7, 0, 0, 0, 0, // Action 53 [UNLICENSED]
|
||||||
30, 4, 5, 0, 0, 0, 0, // unrom 512 (NESmaker) [UNLICENSED]
|
30, 4, 5, 0, 0, 0, 0, // unrom 512 (NESmaker) [UNLICENSED]
|
||||||
32, 3, 4, 5, 5, 0, 0, // irem g-101
|
32, 3, 4, 5, 5, 0, 0, // irem g-101
|
||||||
33, 3, 4, 5, 6, 0, 0, // taito tc0190
|
33, 3, 4, 5, 6, 0, 0, // taito tc0190
|
||||||
@ -2696,6 +2697,25 @@ void readPRG(boolean readrom) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
case 28: // using 32k mode for inner and outer banks, switching only with outer
|
||||||
|
banks = int_pow(2, prgsize) / 2;
|
||||||
|
write_prg_byte(0x5000, 0x81);
|
||||||
|
write_prg_byte(0x8000, 0);
|
||||||
|
write_prg_byte(0x5000, 0x80);
|
||||||
|
write_prg_byte(0x8000, 0);
|
||||||
|
write_prg_byte(0x5000, 0x01);
|
||||||
|
write_prg_byte(0x8000, 0);
|
||||||
|
write_prg_byte(0x5000, 0x00);
|
||||||
|
write_prg_byte(0x8000, 0);
|
||||||
|
for (int i = 0; i < banks; i++) {
|
||||||
|
write_prg_byte(0x5000, 0x81);
|
||||||
|
write_prg_byte(0x8000, i);
|
||||||
|
for (word address = 0x0; address < 0x8000; address += 512) {
|
||||||
|
dumpPRG(base, address);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
|
||||||
case 30: // 256K/512K
|
case 30: // 256K/512K
|
||||||
banks = int_pow(2, prgsize);
|
banks = int_pow(2, prgsize);
|
||||||
|
Loading…
Reference in New Issue
Block a user