15class CassettePortInterface;
23 void reset(EmuTime::param time)
override;
24 [[nodiscard]]
byte readIO(
word port, EmuTime::param time)
override;
25 [[nodiscard]]
byte peekIO(
word port, EmuTime::param time)
const override;
26 void writeIO(
word port,
byte value, EmuTime::param time)
override;
28 template<
typename Archive>
29 void serialize(Archive& ar,
unsigned version);
33 [[nodiscard]]
byte readA(EmuTime::param time)
override;
34 [[nodiscard]]
byte readB(EmuTime::param time)
override;
35 [[nodiscard]]
nibble readC0(EmuTime::param time)
override;
36 [[nodiscard]]
nibble readC1(EmuTime::param time)
override;
37 [[nodiscard]]
byte peekA(EmuTime::param time)
const override;
38 [[nodiscard]]
byte peekB(EmuTime::param time)
const override;
39 [[nodiscard]]
nibble peekC0(EmuTime::param time)
const override;
40 [[nodiscard]]
nibble peekC1(EmuTime::param time)
const override;
41 void writeA(
byte value, EmuTime::param time)
override;
42 void writeB(
byte value, EmuTime::param time)
override;
43 void writeC0(
nibble value, EmuTime::param time)
override;
44 void writeC1(
nibble value, EmuTime::param time)
override;
51 std::array<JoystickPortIf*, 2> ports;
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.
void serialize(Archive &ar, unsigned version)
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.
byte peekIO(word port, EmuTime::param time) const override
Read a byte from a given IO port.
SVIPPI(const DeviceConfig &config)
This file implemented 3 utility functions:
uint8_t nibble
4 bit integer
uint16_t word
16 bit unsigned integer