OXYGENHUB
◆ main openmsx / src / memory / RomGameMaster2.hh
550 B · C++ · last changed chore(): initial commit 1 month ago source blame history raw
1
#ifndef ROMGAMEMASTER2_HH
2
#define ROMGAMEMASTER2_HH
3
4
#include "RomBlocks.hh"
5
6
namespace openmsx {
7
8
class RomGameMaster2 final : public Rom4kBBlocks
9
{
10
public:
11
	RomGameMaster2(const DeviceConfig& config, Rom&& rom);
12
13
	void reset(EmuTime time) override;
14
	void writeMem(uint16_t address, byte value, EmuTime time) override;
15
	[[nodiscard]] byte* getWriteCacheLine(uint16_t address) override;
16
17
	template<typename Archive>
18
	void serialize(Archive& ar, unsigned version);
19
20
private:
21
	uint16_t sramOffset;
22
	bool sramEnabled;
23
};
24
25
} // namespace openmsx
26
27
#endif