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