openMSX
AY8910Periphery.hh
Go to the documentation of this file.
1#ifndef AY8910PERIPHERY_HH
2#define AY8910PERIPHERY_HH
3
4#include "EmuTime.hh"
5#include "openmsx.hh"
6
7namespace openmsx {
8
15{
16public:
25 [[nodiscard]] virtual byte readA(EmuTime::param time);
26
28 [[nodiscard]] virtual byte readB(EmuTime::param time);
29
35 virtual void writeA(byte value, EmuTime::param time);
36
38 virtual void writeB(byte value, EmuTime::param time);
39
40protected:
41 AY8910Periphery() = default;
42 ~AY8910Periphery() = default;
43};
44
45} // namespace openmsx
46
47#endif // AY8910PERIPHERY_HH
Models the general purpose I/O ports of the AY8910.
virtual void writeA(byte value, EmuTime::param time)
Writes to the peripheral on port A.
virtual byte readA(EmuTime::param time)
Reads the state of the peripheral on port A.
virtual byte readB(EmuTime::param time)
Similar to readA, but reads port B.
virtual void writeB(byte value, EmuTime::param time)
Similar to writeA, but writes port B.
This file implemented 3 utility functions:
Definition Autofire.cc:11