GB Memory: Fix MBC5 for large ROMs

This commit is contained in:
Jeffrey Pfau 2016-02-17 20:00:55 -08:00
parent 1898634857
commit 215f7752f3
1 changed files with 1 additions and 1 deletions

View File

@ -487,7 +487,7 @@ void _GBMBC3(struct GBMemory* memory, uint16_t address, uint8_t value) {
}
void _GBMBC5(struct GBMemory* memory, uint16_t address, uint8_t value) {
int bank = value & 0x7F;
int bank = value;
switch (address >> 13) {
case 0x0:
switch (value) {