18 , password(config.getChildDataAsInt(
"password", 0))
20 reset(EmuTime::dummy());
30 pointer = (value == 0) ? 0 : 3;
35 byte result =
peekIO(port, time);
48 return password & 0xFF;
54 template<
typename Archive>
57 ar.template serializeBase<MSXDevice>(*
this);
58 ar.serialize(
"pointer", pointer);
An MSXDevice is an emulated hardware component connected to the bus of the emulated MSX.
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.
PasswordCart(const DeviceConfig &config)
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.
void serialize(Archive &ar, unsigned version)
byte peekIO(word port, EmuTime::param time) const override
Read a byte from a given IO port.
constexpr vecN< N, T > min(const vecN< N, T > &x, const vecN< N, T > &y)
This file implemented 3 utility functions:
REGISTER_MSXDEVICE(ChakkariCopy, "ChakkariCopy")
uint16_t word
16 bit unsigned integer
#define INSTANTIATE_SERIALIZE_METHODS(CLASS)