8 , reference(getCurrentTime())
14 reference.
reset(time);
45 return (port & 1) ? ((counter >> 8) & 0xFF) : (counter & 0xFF);
48template<
typename Archive>
51 ar.template serializeBase<MSXDevice>(*
this);
52 ar.serialize(
"reference", reference);
#define REGISTER_MSXDEVICE(CLASS, NAME)
constexpr void reset(EmuTime::param e)
Reset the clock to start ticking at the given time.
constexpr void advance(EmuTime::param e)
Advance this clock in time until the last tick which is not past the given time.
constexpr unsigned getTicksTill(EmuTime::param e) const
Calculate the number of ticks for this clock until the given time.
An MSXDevice is an emulated hardware component connected to the bus of the emulated MSX.
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.
MSXE6Timer(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.
This file implemented 3 utility functions:
uint16_t word
16 bit unsigned integer
#define INSTANTIATE_SERIALIZE_METHODS(CLASS)