Skip to content

Commit

Permalink
Merge pull request TASEmulators#655 from negativeExponent/patch-2
Browse files Browse the repository at this point in the history
MMC5: Fix PRG in 32K bank switching
  • Loading branch information
ClusterM authored Aug 22, 2023
2 parents 35218bd + 3f1e080 commit 3981ffc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/boards/mmc5.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -424,7 +424,7 @@ static void MMC5PRG(void) {
switch (mmc5psize & 3) {
case 0:
MMC5ROMWrProtect[0] = MMC5ROMWrProtect[1] = MMC5ROMWrProtect[2] = MMC5ROMWrProtect[3] = 1;
setprg32(0x8000, ((PRGBanks[1] & 0x7F) >> 2));
setprg32(0x8000, ((PRGBanks[3] & 0x7F) >> 2));
for (x = 0; x < 4; x++)
MMC5MemIn[1 + x] = 1;
break;
Expand Down

0 comments on commit 3981ffc

Please sign in to comment.