Update NES.ino

This commit is contained in:
nsx0r 2024-11-24 21:53:44 +00:00 committed by GitHub
parent 68ab9b6f2b
commit a513c4c219
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -2172,8 +2172,8 @@ void readPRG(bool readrom) {
case 58: case 58:
case 213: case 213:
banks = int_pow(2, prgsize) / 2; banks = int_pow(2, prgsize);
for (size_t i = 0; i < banks; i++) { for (size_t i = 0; i < banks; i += 2) {
write_prg_byte(0x8000 + (i & 0x07), 0x00); write_prg_byte(0x8000 + (i & 0x07), 0x00);
dumpBankPRG(0x0, 0x8000, base); dumpBankPRG(0x0, 0x8000, base);
} }