openMSX
MSXCielTurbo.hh
Go to the documentation of this file.
1 #ifndef MSXCIELTURBO_HH
2 #define MSXCIELTURBO_HH
3 
4 #include "MSXDevice.hh"
5 
6 namespace openmsx {
7 
8 class MSXCielTurbo final : public MSXDevice
9 {
10 public:
11  explicit MSXCielTurbo(const DeviceConfig& config);
12 
13  // MSXDevice
14  void reset(EmuTime::param time) override;
15  byte readIO(word port, EmuTime::param time) override;
16  byte peekIO(word port, EmuTime::param time) const override;
17  void writeIO(word port, byte value, EmuTime::param time) override;
18 
19  template<typename Archive>
20  void serialize(Archive& ar, unsigned version);
21 
22 private:
23  byte lastValue;
24 };
25 
26 } // namespace openmsx
27 
28 #endif
openmsx::MSXDevice
An MSXDevice is an emulated hardware component connected to the bus of the emulated MSX.
Definition: MSXDevice.hh:31
openmsx::MSXCielTurbo::MSXCielTurbo
MSXCielTurbo(const DeviceConfig &config)
Definition: MSXCielTurbo.cc:8
openmsx::MSXCielTurbo::serialize
void serialize(Archive &ar, unsigned version)
Definition: MSXCielTurbo.cc:41
openmsx::DeviceConfig
Definition: DeviceConfig.hh:19
openmsx::MSXCielTurbo::peekIO
byte peekIO(word port, EmuTime::param time) const override
Read a byte from a given IO port.
Definition: MSXCielTurbo.cc:25
openmsx::MSXCielTurbo::readIO
byte readIO(word port, EmuTime::param time) override
Read a byte from an IO port at a certain time from this device.
Definition: MSXCielTurbo.cc:20
MSXDevice.hh
openmsx::MSXCielTurbo::reset
void reset(EmuTime::param time) override
This method is called on reset.
Definition: MSXCielTurbo.cc:14
openmsx::MSXCielTurbo::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: MSXCielTurbo.cc:30
openmsx::word
uint16_t word
16 bit unsigned integer
Definition: openmsx.hh:29
openmsx::MSXCielTurbo
Definition: MSXCielTurbo.hh:8
openmsx
Thanks to enen for testing this on a real cartridge:
Definition: Autofire.cc:5