66 switch (port & 0x01) {
78template<
typename Archive>
81 ar.template serializeBase<MSXDevice>(*
this);
82 if (ar.versionAtLeast(version, 4)) {
83 ar.serialize(
"MC6850", mc6850);
byte peekStatusReg() const
void reset(EmuTime::param time)
void writeControlReg(byte value, EmuTime::param time)
byte readStatusReg() const
void writeDataReg(byte value, EmuTime::param time)
void serialize(Archive &ar, unsigned version)
An MSXDevice is an emulated hardware component connected to the bus of the emulated MSX.
EmuTime::param getCurrentTime() const
void serialize(Archive &ar, unsigned version)
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 writeIO(word port, byte value, EmuTime::param time) override
Write a byte to a given IO port at a certain time to this device.
MusicModuleMIDI(const DeviceConfig &config)
void reset(EmuTime::param time) override
This method is called on reset.
std::string getName(KeyCode keyCode)
Translate key code to key name.
This file implemented 3 utility functions:
REGISTER_MSXDEVICE(ChakkariCopy, "ChakkariCopy")
uint16_t word
16 bit unsigned integer
#define INSTANTIATE_SERIALIZE_METHODS(CLASS)