2014-06-26 23:13:02 -04:00
|
|
|
#pragma once
|
|
|
|
#include "stdafx.h"
|
|
|
|
#include "BaseMapper.h"
|
|
|
|
|
|
|
|
class AXROM : public BaseMapper
|
|
|
|
{
|
|
|
|
protected:
|
2016-12-17 23:14:47 -05:00
|
|
|
virtual uint16_t GetPRGPageSize() override { return 0x8000; }
|
|
|
|
virtual uint16_t GetCHRPageSize() override { return 0x2000; }
|
2014-06-26 23:13:02 -04:00
|
|
|
|
2016-12-17 23:14:47 -05:00
|
|
|
void InitMapper() override
|
2014-06-26 23:13:02 -04:00
|
|
|
{
|
|
|
|
SelectCHRPage(0, 0);
|
2018-11-20 02:31:55 -05:00
|
|
|
WriteRegister(0, GetPowerOnByte());
|
2014-06-26 23:13:02 -04:00
|
|
|
}
|
|
|
|
|
2018-07-07 14:52:51 -04:00
|
|
|
bool HasBusConflicts() override { return _romInfo.SubMapperID == 2; }
|
2016-06-03 19:16:31 -04:00
|
|
|
|
2016-12-17 23:14:47 -05:00
|
|
|
void WriteRegister(uint16_t addr, uint8_t value) override
|
2014-06-26 23:13:02 -04:00
|
|
|
{
|
2016-06-12 19:26:56 -04:00
|
|
|
SelectPRGPage(0, value & 0x0F);
|
2014-06-26 23:13:02 -04:00
|
|
|
|
2015-07-29 22:10:34 -04:00
|
|
|
SetMirroringType(((value & 0x10) == 0x10) ? MirroringType::ScreenBOnly : MirroringType::ScreenAOnly);
|
2014-06-26 23:13:02 -04:00
|
|
|
}
|
|
|
|
};
|