MSXSwitchedDevice.cc 411 B

12345678910111213141516171819
  1. #include "MSXSwitchedDevice.hh"
  2. #include "MSXDeviceSwitch.hh"
  3. #include "MSXMotherBoard.hh"
  4. namespace openmsx {
  5. MSXSwitchedDevice::MSXSwitchedDevice(MSXMotherBoard& motherBoard_, byte id_)
  6. : motherBoard(motherBoard_), id(id_)
  7. {
  8. motherBoard.getDeviceSwitch().registerDevice(id, this);
  9. }
  10. MSXSwitchedDevice::~MSXSwitchedDevice()
  11. {
  12. motherBoard.getDeviceSwitch().unregisterDevice(id);
  13. }
  14. } // namespace openmsx