Mesen/Core/Sachen_143.h

15 lines
336 B
C
Raw Permalink Normal View History

2016-06-19 05:02:09 +00:00
#pragma once
#include "NROM.h"
class Sachen_143 : public NROM
{
protected:
2016-12-18 04:14:47 +00:00
uint16_t RegisterStartAddress() override { return 0x4100; }
uint16_t RegisterEndAddress() override { return 0x5FFF; }
bool AllowRegisterRead() override { return true; }
2016-06-19 05:02:09 +00:00
2016-12-18 04:14:47 +00:00
uint8_t ReadRegister(uint16_t addr) override
2016-06-19 05:02:09 +00:00
{
return (~addr & 0x3F) | 0x40;
}
};