fixed mapper 23

fixed mapper 23, tested working with Ganbare Goemon 2
This commit is contained in:
nsx0r 2022-12-14 21:46:39 +01:00 committed by GitHub
parent 642d582002
commit 2d3eeed53a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2719,7 +2719,6 @@ void readPRG(boolean readrom) {
break;
case 22:
case 23:
case 25:
case 65:
case 75: // 128K/256K
@ -2732,6 +2731,18 @@ void readPRG(boolean readrom) {
}
}
break;
case 23:
banks = int_pow(2, prgsize) * 2;
write_prg_byte(0x9002, 0);
write_prg_byte(0x9008, 0);
for (int i = 0; i < banks; i++) {
write_prg_byte(0x8000, i);
for (word address = 0x0; address < 0x2000; address += 512) {
dumpPRG(base, address);
}
}
break;
case 24:
case 26: // 256K