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("Multi");
11  return {hwConf, xml};
12 }
13 
15  : MSXDevice(getMultiConfig(hwConf), "Multi")
16 {
17 }
18 
19 void MSXMultiDevice::reset(EmuTime::param /*time*/)
20 {
22 }
23 
24 void MSXMultiDevice::powerUp(EmuTime::param /*time*/)
25 {
27 }
28 
29 void MSXMultiDevice::powerDown(EmuTime::param /*time*/)
30 {
32 }
33 
34 } // namespace openmsx
openmsx::HardwareConfig
HardwareConfig
Definition: HardwareConfig.cc:476
openmsx::MSXDevice
An MSXDevice is an emulated hardware component connected to the bus of the emulated MSX.
Definition: MSXDevice.hh:32
openmsx::XMLElement
XMLElement
Definition: XMLElement.cc:350
openmsx::MSXMultiDevice::powerUp
void powerUp(EmuTime::param time) override
This method is called when MSX is powered up.
Definition: MSXMultiDevice.cc:24
MSXMultiDevice.hh
XMLElement.hh
openmsx::MSXMultiDevice::MSXMultiDevice
MSXMultiDevice(const HardwareConfig &hwConf)
Definition: MSXMultiDevice.cc:14
UNREACHABLE
#define UNREACHABLE
Definition: unreachable.hh:38
openmsx::MSXMultiDevice::reset
void reset(EmuTime::param time) override
This method is called on reset.
Definition: MSXMultiDevice.cc:19
openmsx::MSXMultiDevice::powerDown
void powerDown(EmuTime::param time) override
This method is called when MSX is powered down.
Definition: MSXMultiDevice.cc:29
openmsx::HardwareConfig
Definition: HardwareConfig.hh:22
unreachable.hh
DeviceConfig.hh
openmsx
This file implemented 3 utility functions:
Definition: Autofire.cc:5