2016-11-06 13:34:22 -05:00
|
|
|
#pragma once
|
|
|
|
#include "stdafx.h"
|
|
|
|
#include "BaseMapper.h"
|
|
|
|
|
|
|
|
class Gs2004 : public BaseMapper
|
|
|
|
{
|
|
|
|
protected:
|
2016-12-17 23:14:47 -05:00
|
|
|
uint16_t GetPRGPageSize() override { return 0x2000; }
|
|
|
|
uint16_t GetCHRPageSize() override { return 0x2000; }
|
2016-11-06 13:34:22 -05:00
|
|
|
|
|
|
|
void InitMapper() override
|
|
|
|
{
|
|
|
|
SelectCHRPage(0, 0);
|
|
|
|
}
|
|
|
|
|
|
|
|
void Reset(bool softReset) override
|
|
|
|
{
|
|
|
|
SetCpuMemoryMapping(0x6000, 0x7FFF, 0x20, PrgMemoryType::PrgRom);
|
|
|
|
SelectPrgPage4x(0, 0x07 << 2);
|
|
|
|
}
|
|
|
|
|
|
|
|
void WriteRegister(uint16_t addr, uint8_t value) override
|
|
|
|
{
|
|
|
|
SelectPrgPage4x(0, (value & 0x07) << 2);
|
|
|
|
}
|
|
|
|
};
|