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