Skip to content

Commit 3981ffc

Browse files
authored
Merge pull request #655 from negativeExponent/patch-2
MMC5: Fix PRG in 32K bank switching
2 parents 35218bd + 3f1e080 commit 3981ffc

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/boards/mmc5.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -424,7 +424,7 @@ static void MMC5PRG(void) {
424424
switch (mmc5psize & 3) {
425425
case 0:
426426
MMC5ROMWrProtect[0] = MMC5ROMWrProtect[1] = MMC5ROMWrProtect[2] = MMC5ROMWrProtect[3] = 1;
427-
setprg32(0x8000, ((PRGBanks[1] & 0x7F) >> 2));
427+
setprg32(0x8000, ((PRGBanks[3] & 0x7F) >> 2));
428428
for (x = 0; x < 4; x++)
429429
MMC5MemIn[1 + x] = 1;
430430
break;

0 commit comments

Comments
 (0)