mirror of
https://github.com/libretro/Mesen.git
synced 2024-11-23 09:09:45 +00:00
15 lines
336 B
C++
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;
|
|
}
|
|
}; |