mirror of
https://github.com/sanni/cartreader.git
synced 2025-01-09 19:49:21 +01:00
Update NES.ino - trimming a couple extra lines
Update NES.ino - trimming a couple extra lines
This commit is contained in:
parent
c6f3e8b8f4
commit
cccc74c068
@ -3410,23 +3410,17 @@ void readCHR(bool readrom) {
|
||||
case 88:
|
||||
banks = int_pow(2, chrsize) * 4;
|
||||
write_prg_byte(0xA001, 0x80);
|
||||
for (size_t i = 0; i < banks; i += 4) {
|
||||
for (size_t i = 0; i < banks; i += 2) {
|
||||
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);
|
||||
dumpBankCHR(0x0, 0x0800);
|
||||
} 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);
|
||||
dumpBankCHR(0x1000, 0x1800);
|
||||
}
|
||||
}
|
||||
break;
|
||||
|
Loading…
x
Reference in New Issue
Block a user