openMSX
|
Models the general purpose I/O ports of the AY8910. More...
#include <AY8910Periphery.hh>
Public Member Functions | |
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 | writeA (byte value, EmuTime::param time) |
Writes to the peripheral on port A. | |
virtual void | writeB (byte value, EmuTime::param time) |
Similar to writeA, but writes port B. | |
Protected Member Functions | |
AY8910Periphery ()=default | |
~AY8910Periphery ()=default | |
Models the general purpose I/O ports of the AY8910.
The default implementation handles an empty periphery: nothing is connected to the I/O ports. This class can be overridden to connect peripherals.
Definition at line 14 of file AY8910Periphery.hh.
|
protecteddefault |
|
protecteddefault |
|
virtual |
Reads the state of the peripheral on port A.
Since the AY8910 doesn't have control lines for the I/O ports, a peripheral is not aware that it is read, which means that "peek" and "read" are equivalent.
time | The moment in time the peripheral's state is read. On subsequent calls, the time will always be increasing. |
Reimplemented in openmsx::DummyAY8910Periphery.
Definition at line 5 of file AY8910Periphery.cc.
Referenced by openmsx::AY8910::peekRegister(), and openmsx::AY8910::readRegister().
|
virtual |
Similar to readA, but reads port B.
Reimplemented in openmsx::DummyAY8910Periphery.
Definition at line 10 of file AY8910Periphery.cc.
Referenced by openmsx::AY8910::peekRegister(), and openmsx::AY8910::readRegister().
|
virtual |
Writes to the peripheral on port A.
value | The value to write. |
time | The moment in time the value is written. On subsequent calls, the time will always be increasing. |
Reimplemented in openmsx::DummyAY8910Periphery.
Definition at line 15 of file AY8910Periphery.cc.
|
virtual |
Similar to writeA, but writes port B.
Reimplemented in openmsx::DummyAY8910Periphery.
Definition at line 20 of file AY8910Periphery.cc.