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 
6 namespace openmsx {
7 
8 static DeviceConfig getMultiConfig(const HardwareConfig& hwConf)
9 {
10  static XMLElement* xml = [] {
11  auto& doc = XMLDocument::getStaticDocument();
12  return doc.allocateElement("Multi");
13  }();
14  return {hwConf, *xml};
15 }
16 
18  : MSXDevice(getMultiConfig(hwConf), "Multi")
19 {
20 }
21 
22 void MSXMultiDevice::reset(EmuTime::param /*time*/)
23 {
25 }
26 
27 void MSXMultiDevice::powerUp(EmuTime::param /*time*/)
28 {
30 }
31 
32 void 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:33
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()
Definition: XMLElement.hh:255
This file implemented 3 utility functions:
Definition: Autofire.cc:9
#define UNREACHABLE
Definition: unreachable.hh:38