Merge pull request #34 from RokkumanX/patch-2
Update MMC3_52, Fix: Mario 7-in-1 display errors
This commit is contained in:
commit
ac3d43dd08
1 changed files with 4 additions and 3 deletions
|
@ -27,11 +27,12 @@ protected:
|
|||
{
|
||||
if(_extraReg & 0x40) {
|
||||
page &= 0x7F;
|
||||
page |= ((_extraReg & 0x04) | ((_extraReg >> 4) & 0x03)) << 7;
|
||||
page |= (((_extraReg & 0x20) >> 3) | ((_extraReg & 0x10) >> 4) | ((_extraReg & 0x04) >> 1)) << 7;
|
||||
} else {
|
||||
page &= 0xFF;
|
||||
page |= ((_extraReg & 0x04) | ((_extraReg >> 4) & 0x02)) << 7;
|
||||
page |= (((_extraReg & 0x20) >> 3) | ((_extraReg & 0x10) >> 4)) << 7;
|
||||
}
|
||||
|
||||
MMC3::SelectCHRPage(slot, page, memoryType);
|
||||
}
|
||||
|
||||
|
@ -62,4 +63,4 @@ protected:
|
|||
MMC3::WriteRegister(addr, value);
|
||||
}
|
||||
}
|
||||
};
|
||||
};
|
||||
|
|
Loading…
Add table
Reference in a new issue