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