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 
7 namespace openmsx {
8 
15 {
16 public:
25  virtual byte readA(EmuTime::param time);
26 
28  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 
40 protected:
41  AY8910Periphery() = default;
42  ~AY8910Periphery() = default;
43 };
44 
45 } // namespace openmsx
46 
47 #endif // AY8910PERIPHERY_HH
virtual void writeB(byte value, EmuTime::param time)
Similar to writeA, but writes port B.
virtual void writeA(byte value, EmuTime::param time)
Writes to the peripheral on port A.
uint8_t byte
8 bit unsigned integer
Definition: openmsx.hh:26
virtual byte readB(EmuTime::param time)
Similar to readA, but reads port B.
virtual byte readA(EmuTime::param time)
Reads the state of the peripheral on port A.
Thanks to enen for testing this on a real cartridge:
Definition: Autofire.cc:5
Models the general purpose I/O ports of the AY8910.