Update NES.ino - trimming a couple extra lines

Update NES.ino - trimming a couple extra lines
This commit is contained in:
nsx0r 2025-01-01 13:54:33 +00:00 committed by GitHub
parent c6f3e8b8f4
commit cccc74c068
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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;