12class CassettePortInterface;
22 void reset(EmuTime::param time)
override;
23 void powerDown(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 void writeB(
byte value, EmuTime::param time)
override;
40 std::array<JoystickPortIf*, 2> ports;
45 const byte addressMask;
Models the general purpose I/O ports of the AY8910.
This class implements the AY-3-8910 sound chip.
An MSXDevice is an emulated hardware component connected to the bus of the emulated MSX.
void powerDown(EmuTime::param time) override
This method is called when MSX is powered down.
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)
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.
byte peekIO(word port, EmuTime::param time) const override
Read a byte from a given IO port.
Ren-Sha Turbo is the autofire in several MSX 2+ models and in the MSX turbo R.
This file implemented 3 utility functions:
uint16_t word
16 bit unsigned integer