MMC3: Allow bits 6/7 to be used for reg 6 & 7 (needed for some bootleg games)

This commit is contained in:
Souryo 2017-01-15 14:24:34 -05:00
parent 4ffc2b756b
commit d968541444

View file

@ -216,10 +216,7 @@ class MMC3 : public BaseMapper
break;
case MMC3Registers::Reg8001:
if(_currentRegister >= 6) {
//"Writes to registers 6 and 7 always ignore bits 6 and 7, as the MMC3 has only 6 PRG ROM address output lines."
value &= 0x3F;
} else if(_currentRegister <= 1) {
if(_currentRegister <= 1) {
//"Writes to registers 0 and 1 always ignore bit 0"
value &= ~0x01;
}