mirror of
https://github.com/sanni/cartreader.git
synced 2025-01-10 12:09:21 +01:00
Update NES.ino - fixed mapper 88
Update NES.ino - fixed mapper 88
This commit is contained in:
parent
44ad089188
commit
c6f3e8b8f4
@ -2888,7 +2888,6 @@ void readCHR(bool readrom) {
|
|||||||
case 52:
|
case 52:
|
||||||
case 64:
|
case 64:
|
||||||
case 76:
|
case 76:
|
||||||
case 88: // 128K
|
|
||||||
case 95: // 32K
|
case 95: // 32K
|
||||||
case 118:
|
case 118:
|
||||||
case 119:
|
case 119:
|
||||||
@ -3408,6 +3407,30 @@ void readCHR(bool readrom) {
|
|||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
case 88:
|
||||||
|
banks = int_pow(2, chrsize) * 4;
|
||||||
|
write_prg_byte(0xA001, 0x80);
|
||||||
|
for (size_t i = 0; i < banks; i += 4) {
|
||||||
|
if (i < 64) {
|
||||||
|
write_prg_byte(0x8000, 0);
|
||||||
|
write_prg_byte(0x8001, i);
|
||||||
|
write_prg_byte(0x8000, 1);
|
||||||
|
write_prg_byte(0x8001, i + 2);
|
||||||
|
dumpBankCHR(0x0, 0x1000);
|
||||||
|
} else {
|
||||||
|
write_prg_byte(0x8000, 2);
|
||||||
|
write_prg_byte(0x8001, i);
|
||||||
|
write_prg_byte(0x8000, 3);
|
||||||
|
write_prg_byte(0x8001, i + 1);
|
||||||
|
write_prg_byte(0x8000, 4);
|
||||||
|
write_prg_byte(0x8001, i + 2);
|
||||||
|
write_prg_byte(0x8000, 5);
|
||||||
|
write_prg_byte(0x8001, i + 3);
|
||||||
|
dumpBankCHR(0x1000, 0x2000);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
|
||||||
case 89: // 128K
|
case 89: // 128K
|
||||||
banks = int_pow(2, chrsize) / 2;
|
banks = int_pow(2, chrsize) / 2;
|
||||||
for (size_t i = 0; i < banks; i++) { // 8K Banks
|
for (size_t i = 0; i < banks; i++) { // 8K Banks
|
||||||
|
Loading…
x
Reference in New Issue
Block a user