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