1#ifndef SG1000JOYSTICKIO_HH
2#define SG1000JOYSTICKIO_HH
18 [[nodiscard]]
byte readIO(
word port, EmuTime::param time)
override;
19 [[nodiscard]]
byte peekIO(
word port, EmuTime::param time)
const override;
21 template<
typename Archive>
22 void serialize(Archive& ar,
unsigned version);
25 std::array<JoystickPortIf*, 2> ports;
An MSXDevice is an emulated hardware component connected to the bus of the emulated MSX.
I/O port access to the joysticks for the Sega SG-1000.
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.
This file implemented 3 utility functions:
uint16_t word
16 bit unsigned integer