mirror of
https://github.com/sanni/cartreader.git
synced 2025-01-12 13:09:07 +01:00
[NES] fixed mapper 34
fixed mapper 34, confirmed working thanks to Avalon
This commit is contained in:
parent
12d2a6cac4
commit
1ea1f33cd3
@ -2841,6 +2841,7 @@ void readPRG(boolean readrom) {
|
|||||||
for (int i = 0; i < banks; i++) {
|
for (int i = 0; i < banks; i++) {
|
||||||
write_prg_byte(0x7FFD, i); // NINA Bank select
|
write_prg_byte(0x7FFD, i); // NINA Bank select
|
||||||
write_prg_byte(0x8000, i); // BxROM bank select
|
write_prg_byte(0x8000, i); // BxROM bank select
|
||||||
|
delay(200); // NINA seems slow to switch banks
|
||||||
for (word address = 0x0; address < 0x8000; address += 512) { // 32K Banks ($8000-$FFFF)
|
for (word address = 0x0; address < 0x8000; address += 512) { // 32K Banks ($8000-$FFFF)
|
||||||
dumpPRG(base, address);
|
dumpPRG(base, address);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user