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

15 lines
336 B
C++

#pragma once
#include "NROM.h"
class Sachen_143 : public NROM
{
protected:
uint16_t RegisterStartAddress() override { return 0x4100; }
uint16_t RegisterEndAddress() override { return 0x5FFF; }
bool AllowRegisterRead() override { return true; }
uint8_t ReadRegister(uint16_t addr) override
{
return (~addr & 0x3F) | 0x40;
}
};