2014-06-24 14:28:19 -04:00
|
|
|
#pragma once
|
|
|
|
#include "stdafx.h"
|
|
|
|
#include "BaseMapper.h"
|
|
|
|
|
|
|
|
class CNROM : public BaseMapper
|
|
|
|
{
|
|
|
|
protected:
|
2015-08-09 20:45:45 -04:00
|
|
|
virtual uint16_t GetPRGPageSize() { return 0x8000; }
|
|
|
|
virtual uint16_t GetCHRPageSize() { return 0x2000; }
|
2014-06-24 14:28:19 -04:00
|
|
|
|
|
|
|
void InitMapper()
|
|
|
|
{
|
|
|
|
SelectPRGPage(0, 0);
|
|
|
|
SelectCHRPage(0, 0);
|
|
|
|
}
|
|
|
|
|
2014-07-12 22:22:40 -04:00
|
|
|
void WriteRegister(uint16_t addr, uint8_t value)
|
2014-06-24 14:28:19 -04:00
|
|
|
{
|
|
|
|
SelectCHRPage(0, value);
|
|
|
|
}
|
|
|
|
};
|