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 : public Rom16kBBlocks
9 {
10 public:
11  RomArc(const DeviceConfig& config, std::unique_ptr<Rom> rom);
12  virtual ~RomArc();
13 
14  virtual void reset(EmuTime::param time);
15  virtual void writeIO(word port, byte value, EmuTime::param time);
16  virtual byte readIO(word port, EmuTime::param time);
17  virtual byte peekIO(word port, EmuTime::param time) const;
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
signed char offset
Definition: CPUCore.cc:252
unsigned char byte
8 bit unsigned integer
Definition: openmsx.hh:33
void serialize(Archive &ar, unsigned version)
Definition: RomArc.cc:53
virtual void writeIO(word port, byte value, EmuTime::param time)
Write a byte to a given IO port at a certain time to this device.
Definition: RomArc.cc:35
virtual byte readIO(word port, EmuTime::param time)
Read a byte from an IO port at a certain time from this device.
Definition: RomArc.cc:42
virtual ~RomArc()
Definition: RomArc.cc:24
virtual void reset(EmuTime::param time)
This method is called on reset.
Definition: RomArc.cc:30
unsigned short word
16 bit unsigned integer
Definition: openmsx.hh:38
const std::unique_ptr< Rom > rom
Definition: MSXRom.hh:24
virtual byte peekIO(word port, EmuTime::param time) const
Read a byte from a given IO port.
Definition: RomArc.cc:47
RomArc(const DeviceConfig &config, std::unique_ptr< Rom > rom)
Definition: RomArc.cc:10