11 reset(EmuTime::dummy());
33 bool enabled = (value & 0x80) != 0;
34 unsigned freq = 3579545;
35 if (enabled) freq *= 2;
40template<
typename Archive>
43 ar.template serializeBase<MSXDevice>(*
this);
45 ar.serialize(
"value", lastValue);
46 if constexpr (!Archive::IS_LOADER) {
48 writeIO(port, lastValue, EmuTime::dummy());
#define REGISTER_MSXDEVICE(CLASS, NAME)
void setLed(Led led, bool status)
void setZ80Freq(unsigned freq)
Switch the Z80 clock freq.
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.
MSXCielTurbo(const DeviceConfig &config)
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.
byte peekIO(word port, EmuTime::param time) const override
Read a byte from a given IO port.
An MSXDevice is an emulated hardware component connected to the bus of the emulated MSX.
LedStatus & getLedStatus() const
This file implemented 3 utility functions:
uint16_t word
16 bit unsigned integer
#define INSTANTIATE_SERIALIZE_METHODS(CLASS)