Mesen/Core/Cc21.h

22 lines
485 B
C
Raw Normal View History

2016-11-09 01:12:54 +00:00
#pragma once
#include "stdafx.h"
#include "BaseMapper.h"
class Cc21 : public BaseMapper
{
protected:
2016-12-18 04:14:47 +00:00
uint16_t GetPRGPageSize() override { return 0x8000; }
uint16_t GetCHRPageSize() override { return 0x2000; }
2016-11-09 01:12:54 +00:00
void InitMapper() override
{
SelectPRGPage(0, 0);
SelectCHRPage(0, 0);
}
void WriteRegister(uint16_t addr, uint8_t value) override
{
SelectCHRPage(0, addr & 0xFF);
SetMirroringType(addr & 0x02 ? MirroringType::ScreenBOnly : MirroringType::ScreenAOnly);
}
};