Mesen/Core/NovelDiamond.h
2016-12-17 23:14:47 -05:00

22 lines
435 B
C++

#pragma once
#include "stdafx.h"
#include "BaseMapper.h"
class NovelDiamond : public BaseMapper
{
protected:
uint16_t GetPRGPageSize() override { return 0x8000; }
uint16_t GetCHRPageSize() override { return 0x2000; }
void InitMapper() override
{
SelectPRGPage(0, 0);
SelectCHRPage(0, 0);
}
void WriteRegister(uint16_t addr, uint8_t value) override
{
SelectPRGPage(0, addr & 0x03);
SelectCHRPage(0, addr & 0x07);
}
};