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
void powerDown(EmuTime::param time) override
This method is called when MSX is powered down.
void reset(EmuTime::param time) override
This method is called on reset.
MSXMultiDevice(const HardwareConfig &hwConf)
Thanks to enen for testing this on a real cartridge:
Definition: Autofire.cc:5
An MSXDevice is an emulated hardware component connected to the bus of the emulated MSX...
Definition: MSXDevice.hh:31
void powerUp(EmuTime::param time) override
This method is called when MSX is powered up.
#define UNREACHABLE
Definition: unreachable.hh:38