OXYGENHUB
◆ main openmsx / src / ide / DummyIDEDevice.cc
786 B · C++ · last changed chore(): initial commit 1 month ago source blame history raw
1
#include "DummyIDEDevice.hh"
2
3
#include "serialize.hh"
4
5
namespace openmsx {
6
7
void DummyIDEDevice::reset(EmuTime /*time*/)
8
{
9
	// do nothing
10
}
11
12
uint16_t DummyIDEDevice::readData(EmuTime /*time*/)
13
{
14
	return 0x7F7F;
15
}
16
17
uint8_t DummyIDEDevice::readReg(uint4_t /*reg*/, EmuTime /*time*/)
18
{
19
	return 0x7F;
20
}
21
22
void DummyIDEDevice::writeData(uint16_t /*value*/, EmuTime /*time*/)
23
{
24
	// do nothing
25
}
26
27
void DummyIDEDevice::writeReg(uint4_t /*reg*/, uint8_t /*value*/,
28
                              EmuTime /*time*/)
29
{
30
	// do nothing
31
}
32
33
template<typename Archive>
34
void DummyIDEDevice::serialize(Archive& /*ar*/, unsigned /*version*/)
35
{
36
	// nothing
37
}
38
INSTANTIATE_SERIALIZE_METHODS(DummyIDEDevice);
39
REGISTER_POLYMORPHIC_INITIALIZER(IDEDevice, DummyIDEDevice, "DummyIDEDevice");
40
41
} // namespace openmsx