openMSX
RomArc.hh
Go to the documentation of this file.
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::param time) override;
15  void writeIO(word port, byte value, EmuTime::param time) override;
16  byte readIO(word port, EmuTime::param time) override;
17  byte peekIO(word port, EmuTime::param time) const override;
18 
19  template<typename Archive>
20  void serialize(Archive& ar, unsigned version);
21 
22 private:
23  byte offset;
24 };
25 
26 } // namspace openmsx
27 
28 #endif
openmsx::DeviceConfig
Definition: DeviceConfig.hh:20
openmsx::RomArc
Definition: RomArc.hh:9
openmsx::RomArc::readIO
byte readIO(word port, EmuTime::param time) override
Read a byte from an IO port at a certain time from this device.
Definition: RomArc.cc:41
openmsx::RomArc::writeIO
void writeIO(word port, byte value, EmuTime::param time) override
Write a byte to a given IO port at a certain time to this device.
Definition: RomArc.cc:34
openmsx::RomBlocks
Definition: RomBlocks.hh:14
openmsx::RomArc::reset
void reset(EmuTime::param time) override
This method is called on reset.
Definition: RomArc.cc:29
openmsx::RomArc::RomArc
RomArc(const DeviceConfig &config, Rom &&rom)
Definition: RomArc.cc:9
openmsx::MSXRom::rom
Rom rom
Definition: MSXRom.hh:20
openmsx::Rom
Definition: Rom.hh:21
openmsx::word
uint16_t word
16 bit unsigned integer
Definition: openmsx.hh:29
openmsx::RomArc::serialize
void serialize(Archive &ar, unsigned version)
Definition: RomArc.cc:52
openmsx::RomArc::peekIO
byte peekIO(word port, EmuTime::param time) const override
Read a byte from a given IO port.
Definition: RomArc.cc:46
openmsx
This file implemented 3 utility functions:
Definition: Autofire.cc:5
openmsx::RomArc::~RomArc
~RomArc() override
Definition: RomArc.cc:23
RomBlocks.hh