openMSX
MSXSwitchedDevice.cc
Go to the documentation of this file.
1 #include "MSXSwitchedDevice.hh"
2 #include "MSXDeviceSwitch.hh"
3 #include "MSXMotherBoard.hh"
4 
5 namespace openmsx {
6 
8  : motherBoard(motherBoard_), id(id_)
9 {
10  motherBoard.getDeviceSwitch().registerDevice(id, this);
11 }
12 
14 {
15  motherBoard.getDeviceSwitch().unregisterDevice(id);
16 }
17 
18 } // namespace openmsx
uintptr_t id
Definition: Interpreter.cc:26
void unregisterDevice(byte id)
void registerDevice(byte id, MSXSwitchedDevice *device)
MSXDeviceSwitch & getDeviceSwitch()
MSXSwitchedDevice(MSXMotherBoard &motherBoard, byte id)
This file implemented 3 utility functions:
Definition: Autofire.cc:9