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
REGISTER_POLYMORPHIC_INITIALIZER(Pluggable, CassettePlayer, "CassettePlayer")
uint8_t byte
8 bit unsigned integer
Definition: openmsx.hh:26
void serialize(Archive &ar, unsigned version)
void writeData(word value, EmuTime::param time) override
void writeReg(nibble reg, byte value, EmuTime::param time) override
Thanks to enen for testing this on a real cartridge:
Definition: Autofire.cc:5
uint8_t nibble
4 bit integer
Definition: openmsx.hh:23
void reset(EmuTime::param time) override
word readData(EmuTime::param time) override
uint16_t word
16 bit unsigned integer
Definition: openmsx.hh:29
#define INSTANTIATE_SERIALIZE_METHODS(CLASS)
Definition: serialize.hh:1006
byte readReg(nibble reg, EmuTime::param time) override