2016-10-24 00:51:01 +00:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "stdafx.h"
|
|
|
|
#include "MMC3.h"
|
|
|
|
|
|
|
|
class MMC3_199 : public MMC3
|
|
|
|
{
|
|
|
|
protected:
|
2016-12-18 04:14:47 +00:00
|
|
|
uint32_t GetChrRamSize() override { return 0x2000; }
|
2023-05-13 01:37:50 +00:00
|
|
|
uint16_t GetChrRamPageSize() override { return 0x2000; }
|
|
|
|
|
|
|
|
uint32_t GetWorkRamPageSize() override { return 0x1000; }
|
2016-10-24 00:51:01 +00:00
|
|
|
|
|
|
|
void InitMapper() override
|
|
|
|
{
|
|
|
|
MMC3::InitMapper();
|
|
|
|
|
2023-05-13 01:37:50 +00:00
|
|
|
SetCpuMemoryMapping(0x5000, 0x5FFF, 2, PrgMemoryType::WorkRam);
|
|
|
|
SetCpuMemoryMapping(0x6000, 0x6FFF, 0, HasBattery() ? PrgMemoryType::SaveRam : PrgMemoryType::WorkRam);
|
|
|
|
SetCpuMemoryMapping(0x7000, 0x7FFF, 1, HasBattery() ? PrgMemoryType::SaveRam : PrgMemoryType::WorkRam);
|
2016-10-24 00:51:01 +00:00
|
|
|
}
|
|
|
|
|
2023-05-13 01:37:50 +00:00
|
|
|
void UpdateChrMapping() override
|
2016-10-24 00:51:01 +00:00
|
|
|
{
|
2023-05-13 01:37:50 +00:00
|
|
|
SelectCHRPage(0, 0);
|
2016-10-24 00:51:01 +00:00
|
|
|
}
|
|
|
|
};
|