8 , inverted(config.getChildDataAsBool(
"inverted", false))
10 reset(EmuTime::dummy());
15 status = inverted ? 0xFF : 0x00;
31 status = value | 0x7F;
33 status = (status & 0x20) | (value & 0xA0);
37template<
typename Archive>
40 ar.template serializeBase<MSXDevice>(*
this);
41 ar.serialize(
"status", status);
#define REGISTER_MSXDEVICE(CLASS, NAME)
An MSXDevice is an emulated hardware component connected to the bus of the emulated MSX.
MSXResetStatusRegister(const DeviceConfig &config)
void serialize(Archive &ar, unsigned version)
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 writeIO(word port, byte value, EmuTime::param time) override
Write a byte to a given IO port at a certain time to this device.
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
#define INSTANTIATE_SERIALIZE_METHODS(CLASS)