openMSX
DummyIDEDevice.cc
Go to the documentation of this file.
1 #include "DummyIDEDevice.hh"
2 #include "serialize.hh"
3 
4 namespace openmsx {
5 
6 void DummyIDEDevice::reset(EmuTime::param /*time*/)
7 {
8  // do nothing
9 }
10 
11 word DummyIDEDevice::readData(EmuTime::param /*time*/)
12 {
13  return 0x7F7F;
14 }
15 
16 byte DummyIDEDevice::readReg(nibble /*reg*/, EmuTime::param /*time*/)
17 {
18  return 0x7F;
19 }
20 
21 void DummyIDEDevice::writeData(word /*value*/, EmuTime::param /*time*/)
22 {
23  // do nothing
24 }
25 
26 void DummyIDEDevice::writeReg(nibble /*reg*/, byte /*value*/,
27  EmuTime::param /*time*/)
28 {
29  // do nothing
30 }
31 
32 template<typename Archive>
33 void DummyIDEDevice::serialize(Archive& /*ar*/, unsigned /*version*/)
34 {
35  // nothing
36 }
39 
40 } // namespace openmsx
openmsx::DummyIDEDevice::serialize
void serialize(Archive &ar, unsigned version)
Definition: DummyIDEDevice.cc:33
serialize.hh
openmsx::DummyIDEDevice::writeReg
void writeReg(nibble reg, byte value, EmuTime::param time) override
Definition: DummyIDEDevice.cc:26
openmsx::DummyIDEDevice::writeData
void writeData(word value, EmuTime::param time) override
Definition: DummyIDEDevice.cc:21
openmsx::DummyIDEDevice::readData
word readData(EmuTime::param time) override
Definition: DummyIDEDevice.cc:11
openmsx::nibble
uint8_t nibble
4 bit integer
Definition: openmsx.hh:23
INSTANTIATE_SERIALIZE_METHODS
#define INSTANTIATE_SERIALIZE_METHODS(CLASS)
Definition: serialize.hh:981
DummyIDEDevice.hh
openmsx::DummyIDEDevice
Definition: DummyIDEDevice.hh:8
openmsx::DummyIDEDevice::reset
void reset(EmuTime::param time) override
Definition: DummyIDEDevice.cc:6
openmsx::word
uint16_t word
16 bit unsigned integer
Definition: openmsx.hh:29
openmsx::DummyIDEDevice::readReg
byte readReg(nibble reg, EmuTime::param time) override
Definition: DummyIDEDevice.cc:16
openmsx::IDEDevice
Definition: IDEDevice.hh:9
openmsx
Thanks to enen for testing this on a real cartridge:
Definition: Autofire.cc:5
openmsx::REGISTER_POLYMORPHIC_INITIALIZER
REGISTER_POLYMORPHIC_INITIALIZER(Pluggable, CassettePlayer, "CassettePlayer")