Mapper 15: Update compatibility (#347)

This commit is contained in:
retro-wertz 2018-04-02 02:47:22 +08:00 committed by SourMesen
parent dc8382faf0
commit ef8735a182

View File

@ -10,10 +10,14 @@ protected:
void InitMapper() override
{
WriteRegister(0x8000, 0);
SelectCHRPage(0, 0);
}
void Reset(bool softReset) override
{
WriteRegister(0x8000, 0);
}
void WriteRegister(uint16_t addr, uint8_t value) override
{
SetMirroringType(value & 0x40 ? MirroringType::Horizontal : MirroringType::Vertical);
@ -33,7 +37,8 @@ protected:
bank |= subBank;
SelectPRGPage(0, bank);
SelectPRGPage(1, bank + 1);
SelectPRGPage(2, bank + ((addr & 0x02) ? 0 : 1));
bank = ((addr & 0x02) ? bank : 0xFE) | subBank;
SelectPRGPage(2, bank + 0);
SelectPRGPage(3, bank + 1);
break;