fixed NES mapper 200

fixed NES mapper 200
This commit is contained in:
nsx0r 2022-10-25 12:28:38 +02:00 committed by GitHub
parent 6590f7e583
commit 9506005c6b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -3506,7 +3506,7 @@ void readPRG(boolean readrom) {
case 200:
banks = int_pow(2, prgsize);
for (int i = 0; i < banks; i++) {
write_prg_byte(0x8000, (i & 0x07));
write_prg_byte(0x8000 + (i & 0x07), 0);
for (word address = 0x0; address < 0x4000; address += 512) {
dumpPRG(base, address);
}
@ -4263,7 +4263,7 @@ void readCHR(boolean readrom) {
case 200:
banks = int_pow(2, chrsize) / 2;
for (int i = 0; i < banks; i++) {
write_prg_byte(0x8000, (i & 0x07));
write_prg_byte(0x8000 + (i & 0x07), 0);
for (word address = 0x0; address < 0x2000; address += 512) {
dumpCHR(address);
}