Merge pull request #661 from nsx0r/patch-47

fixed mapper 23
This commit is contained in:
sanni 2022-12-15 10:17:06 +01:00 committed by GitHub
commit f7cbdec9a2
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
@ -2733,6 +2732,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
case 78: // 128K