16 void powerUp(EmuTime::param time)
override;
17 void reset(EmuTime::param time)
override;
18 [[nodiscard]]
byte readIO(
word port, EmuTime::param time)
override;
19 [[nodiscard]]
byte peekIO(
word port, EmuTime::param time)
const override;
20 void writeIO(
word port,
byte value, EmuTime::param time)
override;
22 template<
typename Archive>
23 void serialize(Archive& ar,
unsigned version);
26 [[nodiscard]]
bool getNew2()
const;
27 [[nodiscard]]
byte readYMF278Status(EmuTime::param time)
const;
34 EmuTime ymf278LoadTime;
36 EmuTime ymf278BusyTime;
An MSXDevice is an emulated hardware component connected to the bus of the emulated MSX.
void powerUp(EmuTime::param time) override
This method is called when MSX is powered up.
byte peekIO(word port, EmuTime::param time) const override
Read a byte from a given IO port.
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 serialize(Archive &ar, unsigned version)
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.
This file implemented 3 utility functions:
uint16_t word
16 bit unsigned integer