Go to the documentation of this file.
9 , sram(
getName() +
" SRAM", 4 * 13, config)
10 , rp5c01(getCommandController(), sram, getCurrentTime(),
getName())
26 return rp5c01.
readPort(registerLatch, time) | 0xF0;
31 return rp5c01.
peekPort(registerLatch) | 0xF0;
36 switch (port & 0x01) {
38 registerLatch = value & 0x0F;
41 rp5c01.
writePort(registerLatch, value & 0x0F, time);
48 template<
typename Archive>
51 ar.template serializeBase<MSXDevice>(*
this);
52 ar.serialize(
"sram", sram,
54 "registerLatch", registerLatch);
An MSXDevice is an emulated hardware component connected to the bus of the emulated MSX.
void reset(EmuTime::param time)
REGISTER_MSXDEVICE(ChakkariCopy, "ChakkariCopy")
byte readIO(word port, EmuTime::param time) override
Read a byte from an IO port at a certain time from this device.
nibble readPort(nibble port, EmuTime::param time)
string getName(KeyCode keyCode)
Translate key code to key name.
EmuTime::param getCurrentTime() const
byte peekIO(word port, EmuTime::param time) const override
Read a byte from a given IO port.
#define INSTANTIATE_SERIALIZE_METHODS(CLASS)
void serialize(Archive &ar, unsigned version)
nibble peekPort(nibble port) const
uint16_t word
16 bit unsigned integer
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.
MSXRTC(const DeviceConfig &config)
void writePort(nibble port, nibble value, EmuTime::param time)
void reset(EmuTime::param time) override
This method is called on reset.
This file implemented 3 utility functions: