20 void reset(EmuTime::param time)
override;
21 [[nodiscard]]
byte readIO(
word port, EmuTime::param time)
override;
22 [[nodiscard]]
byte peekIO(
word port, EmuTime::param time)
const override;
23 void writeIO(
word port,
byte value, EmuTime::param time)
override;
25 template<
typename Archive>
26 void serialize(Archive& ar,
unsigned version);
29 [[nodiscard]]
byte readRegister(
byte reg)
const;
30 void writeRegister(
byte reg,
byte value);
31 void setCPUStatus(
byte value);
36 [[nodiscard]]
byte read(
unsigned address)
override;
37 void write(
unsigned address,
byte value)
override;
An MSXDevice is an emulated hardware component connected to the bus of the emulated MSX.
This class implements the MSX-engine found in a MSX Turbo-R (S1990)
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.
void reset(EmuTime::param time) override
This method is called on reset.
byte readIO(word port, EmuTime::param time) override
Read a byte from an IO port at a certain time from this device.
byte peekIO(word port, EmuTime::param time) const override
Read a byte from a given IO port.
This file implemented 3 utility functions:
uint16_t word
16 bit unsigned integer