openMSX
MSXSwitchedDevice.hh
Go to the documentation of this file.
1 #ifndef MSXSWITCHEDDEVICE_HH
2 #define MSXSWITCHEDDEVICE_HH
3 
4 #include "EmuTime.hh"
5 #include "openmsx.hh"
6 
7 namespace openmsx {
8 
9 class MSXMotherBoard;
10 
12 {
13 public:
14  virtual byte readSwitchedIO(word port, EmuTime::param time) = 0;
15  virtual byte peekSwitchedIO(word port, EmuTime::param time) const = 0;
16  virtual void writeSwitchedIO(word port, byte value, EmuTime::param time) = 0;
17 
18 protected:
19  MSXSwitchedDevice(MSXMotherBoard& motherBoard, byte id);
21 
22 private:
23  MSXMotherBoard& motherBoard;
24  const byte id;
25 };
26 
27 } // namespace openmsx
28 
29 #endif
openmsx.hh
openmsx::MSXSwitchedDevice::MSXSwitchedDevice
MSXSwitchedDevice(MSXMotherBoard &motherBoard, byte id)
Definition: MSXSwitchedDevice.cc:7
openmsx::MSXSwitchedDevice::~MSXSwitchedDevice
~MSXSwitchedDevice()
Definition: MSXSwitchedDevice.cc:13
openmsx::MSXSwitchedDevice
Definition: MSXSwitchedDevice.hh:11
openmsx::MSXSwitchedDevice::readSwitchedIO
virtual byte readSwitchedIO(word port, EmuTime::param time)=0
openmsx::MSXSwitchedDevice::writeSwitchedIO
virtual void writeSwitchedIO(word port, byte value, EmuTime::param time)=0
openmsx::MSXMotherBoard
Definition: MSXMotherBoard.hh:59
openmsx::MSXSwitchedDevice::peekSwitchedIO
virtual byte peekSwitchedIO(word port, EmuTime::param time) const =0
EmuTime.hh
openmsx::word
uint16_t word
16 bit unsigned integer
Definition: openmsx.hh:29
openmsx
Thanks to enen for testing this on a real cartridge:
Definition: Autofire.cc:5