openMSX
MSXMultiDevice.cc
Go to the documentation of this file.
1#include "MSXMultiDevice.hh"
2#include "DeviceConfig.hh"
3#include "XMLElement.hh"
4#include "unreachable.hh"
5
6namespace openmsx {
7
8static DeviceConfig getMultiConfig(const HardwareConfig& hwConf)
9{
10 static const XMLElement* xml = [] {
12 return doc.allocateElement("Multi");
13 }();
14 return {hwConf, *xml};
15}
16
18 : MSXDevice(getMultiConfig(hwConf), "Multi")
19{
20}
21
22void MSXMultiDevice::reset(EmuTime::param /*time*/)
23{
25}
26
27void MSXMultiDevice::powerUp(EmuTime::param /*time*/)
28{
30}
31
32void MSXMultiDevice::powerDown(EmuTime::param /*time*/)
33{
35}
36
37} // namespace openmsx
An MSXDevice is an emulated hardware component connected to the bus of the emulated MSX.
Definition MSXDevice.hh:36
void powerDown(EmuTime::param time) override
This method is called when MSX is powered down.
MSXMultiDevice(const HardwareConfig &hwConf)
void reset(EmuTime::param time) override
This method is called on reset.
void powerUp(EmuTime::param time) override
This method is called when MSX is powered up.
static XMLDocument & getStaticDocument()
This file implemented 3 utility functions:
Definition Autofire.cc:11
#define UNREACHABLE