31 void reset(EmuTime::param time)
override;
32 void powerDown(EmuTime::param time)
override;
34 [[nodiscard]]
byte readIO(
word port, EmuTime::param time)
override;
35 [[nodiscard]]
byte peekIO(
word port, EmuTime::param time)
const override;
36 void writeIO(
word port,
byte value, EmuTime::param time)
override;
38 template<
typename Archive>
39 void serialize(Archive& ar,
unsigned version);
50 bool pauseLed =
false;
51 bool turboLed =
false;
An MSXDevice is an emulated hardware component connected to the bus of the emulated MSX.
This class implements the MSX Turbo-R pause key.
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.
~MSXTurboRPause() override
void powerDown(EmuTime::param time) override
This method is called when MSX is powered down.
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.
void reset(EmuTime::param time) override
This method is called on reset.
void serialize(Archive &ar, unsigned version)
Generic Gang-of-Four Observer class, templatized edition.
This file implemented 3 utility functions:
uint16_t word
16 bit unsigned integer