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
7
MSXSwitchedDevice::MSXSwitchedDevice
(
MSXMotherBoard
& motherBoard_,
byte
id_)
8
: motherBoard(motherBoard_),
id
(id_)
9
{
10
motherBoard.
getDeviceSwitch
().
registerDevice
(
id
,
this
);
11
}
12
13
MSXSwitchedDevice::~MSXSwitchedDevice
()
14
{
15
motherBoard.
getDeviceSwitch
().
unregisterDevice
(
id
);
16
}
17
18
}
// namespace openmsx
id
uintptr_t id
Definition
Interpreter.cc:31
MSXDeviceSwitch.hh
MSXMotherBoard.hh
MSXSwitchedDevice.hh
openmsx::MSXDeviceSwitch::unregisterDevice
void unregisterDevice(byte id)
Definition
MSXDeviceSwitch.cc:42
openmsx::MSXDeviceSwitch::registerDevice
void registerDevice(byte id, MSXSwitchedDevice *device)
Definition
MSXDeviceSwitch.cc:25
openmsx::MSXMotherBoard
Definition
MSXMotherBoard.hh:84
openmsx::MSXMotherBoard::getDeviceSwitch
MSXDeviceSwitch & getDeviceSwitch()
Definition
MSXMotherBoard.cc:458
openmsx::MSXSwitchedDevice::~MSXSwitchedDevice
~MSXSwitchedDevice()
Definition
MSXSwitchedDevice.cc:13
openmsx::MSXSwitchedDevice::MSXSwitchedDevice
MSXSwitchedDevice(MSXMotherBoard &motherBoard, byte id)
Definition
MSXSwitchedDevice.cc:7
openmsx
This file implemented 3 utility functions:
Definition
Autofire.cc:11
Generated on Wed Nov 6 2024 21:13:38 for openMSX by
1.9.8