mirror of
https://github.com/libretro/Mesen.git
synced 2024-11-24 01:29:41 +00:00
32 lines
792 B
C++
32 lines
792 B
C++
#pragma once
|
|
#include "stdafx.h"
|
|
#include "BaseMapper.h"
|
|
|
|
class IremLrog017 : public BaseMapper
|
|
{
|
|
protected:
|
|
virtual uint16_t GetPRGPageSize() { return 0x8000; }
|
|
virtual uint16_t GetCHRPageSize() { return 0x0800; }
|
|
virtual uint32_t GetChrRamSize() { return 0x1800; }
|
|
virtual uint16_t GetChrRamPageSize() { return 0x0800; }
|
|
virtual bool HasBusConflicts() { return true; }
|
|
|
|
void InitMapper()
|
|
{
|
|
InitializeChrRam();
|
|
|
|
SelectPRGPage(0, 0);
|
|
SelectCHRPage(0, 0);
|
|
SetMirroringType(MirroringType::FourScreens);
|
|
|
|
SelectCHRPage(1, 0, ChrMemoryType::ChrRam);
|
|
SelectCHRPage(2, 1, ChrMemoryType::ChrRam);
|
|
SelectCHRPage(3, 2, ChrMemoryType::ChrRam);
|
|
}
|
|
|
|
void WriteRegister(uint16_t addr, uint8_t value)
|
|
{
|
|
SelectPRGPage(0, value & 0x0F);
|
|
SelectCHRPage(0, (value >> 4) & 0x0F);
|
|
}
|
|
}; |