15 void reset(EmuTime::param time)
override;
16 [[nodiscard]]
byte readIO(
word port, EmuTime::param time)
override;
17 [[nodiscard]]
byte peekIO(
word port, EmuTime::param time)
const override;
18 void writeIO(
word port,
byte value, EmuTime::param time)
override;
20 template<
typename Archive>
21 void serialize(Archive& ar,
unsigned version);
An MSXDevice is an emulated hardware component connected to the bus of the emulated MSX.
void reset(EmuTime::param time) override
This method is called on reset.
byte peekIO(word port, EmuTime::param time) const override
Read a byte from a given IO port.
byte readIO(word port, EmuTime::param time) override
Read a byte from an IO port at a certain time from this device.
void serialize(Archive &ar, unsigned version)
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.
This file implemented 3 utility functions:
uint8_t nibble
4 bit integer
uint16_t word
16 bit unsigned integer