OXYGENHUB
◆ main openmsx / src / DummyDevice.cc
791 B · C++ · last changed chore(): initial commit 1 month ago source blame history raw
1
#include "DummyDevice.hh"
2
3
#include "unreachable.hh"
4
5
namespace openmsx {
6
7
DummyDevice::DummyDevice(const DeviceConfig& config)
8
	: MSXDevice(config)
9
{
10
}
11
12
void DummyDevice::reset(EmuTime /*time*/)
13
{
14
	UNREACHABLE;
15
}
16
17
void DummyDevice::getNameList(TclObject& /*result*/) const
18
{
19
	// keep empty list
20
}
21
22
byte DummyDevice::readMem(uint16_t /*address*/, EmuTime /*time*/)
23
{
24
	return 0xFF;
25
}
26
27
byte DummyDevice::peekMem(uint16_t /*address*/, EmuTime /*time*/) const
28
{
29
	return 0xFF;
30
}
31
32
void DummyDevice::writeMem(uint16_t /*address*/, byte /*value*/, EmuTime /*time*/)
33
{
34
	// ignore
35
}
36
37
const byte* DummyDevice::getReadCacheLine(uint16_t /*start*/) const
38
{
39
	return unmappedRead.data();
40
}
41
42
byte* DummyDevice::getWriteCacheLine(uint16_t /*start*/)
43
{
44
	return unmappedWrite.data();
45
}
46
47
} // namespace openmsx