1#ifndef MSXMULTIIODEVICE_HH
2#define MSXMULTIIODEVICE_HH
22 [[nodiscard]]
const std::string&
getName()
const override;
24 [[nodiscard]]
byte readIO(
word port, EmuTime::param time)
override;
25 [[nodiscard]]
byte peekIO(
word port, EmuTime::param time)
const override;
26 void writeIO(
word port,
byte value, EmuTime::param time)
override;
An MSXDevice is an emulated hardware component connected to the bus of the emulated MSX.
void addDevice(MSXDevice *device)
void writeIO(word port, byte value, EmuTime::param time) override
Write a byte to a given IO port at a certain time to this device.
byte readIO(word port, EmuTime::param time) override
Read a byte from an IO port at a certain time from this device.
~MSXMultiIODevice() override
std::vector< MSXDevice * > Devices
void getNameList(TclObject &result) const override
Returns list of name(s) of this device.
void removeDevice(MSXDevice *device)
byte peekIO(word port, EmuTime::param time) const override
Read a byte from a given IO port.
const std::string & getName() const override
Returns a human-readable name for this device.
This file implemented 3 utility functions:
uint16_t word
16 bit unsigned integer