fixed mapper 226

forgot to set the high bit for bigger carts
This commit is contained in:
nsx0r 2022-11-11 10:53:13 +01:00 committed by GitHub
parent 7b1ff5f499
commit 39988d2b1c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -3155,6 +3155,7 @@ void readPRG(boolean readrom) {
case 226:
banks = int_pow(2, prgsize);
for (int i = 0; i < banks; i += 2) {
write_prg_byte(0x8001, (i & 0x40) >> 6);
write_prg_byte(0x8000, ((i & 0x20) << 2) | (i & 0x1F));
for (word address = 0x0; address < 0x8000; address += 512) {
dumpPRG(base, address);