Skip to content

Commit

Permalink
fc: Fix MMC5 program mode 1. (#1228)
Browse files Browse the repository at this point in the history
  • Loading branch information
asiekierka authored Sep 17, 2023
1 parent 3e9ee74 commit db5f7d7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ares/fc/cartridge/board/hvc-exrom.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ struct HVC_ExROM : Interface { //MMC5
address &= 0x7fff;
} else if(programMode == 1) {
if((address & 0xc000) == 0x8000) bank = programBank[1] & ~1;
if((address & 0xe000) == 0xc000) bank = programBank[3] & ~1;
if((address & 0xc000) == 0xc000) bank = programBank[3] & ~1;
address &= 0x3fff;
} else if(programMode == 2) {
if((address & 0xe000) == 0x8000) bank = programBank[1] & ~1 | 0;
Expand Down

0 comments on commit db5f7d7

Please sign in to comment.