openMSX
DummyAY8910Periphery.hh
Go to the documentation of this file.
1 #ifndef DUMMYAY8910PERIPHERY_HH
2 #define DUMMYAY8910PERIPHERY_HH
3 
4 #include "AY8910Periphery.hh"
5 
6 namespace openmsx {
7 
9 {
10 public:
12  {
13  static DummyAY8910Periphery oneInstance;
14  return oneInstance;
15  }
16 
17  byte readA(EmuTime::param /*time*/) override { return 255; }
18  byte readB(EmuTime::param /*time*/) override { return 255; }
19  void writeA(byte /*value*/, EmuTime::param /*time*/) override {}
20  void writeB(byte /*value*/, EmuTime::param /*time*/) override {}
21 
22 private:
23  DummyAY8910Periphery() = default;
24  ~DummyAY8910Periphery() = default;
25 };
26 
27 }; // namespace openmsx
28 
29 #endif
uint8_t byte
8 bit unsigned integer
Definition: openmsx.hh:26
byte readB(EmuTime::param) override
Similar to readA, but reads port B.
byte readA(EmuTime::param) override
Reads the state of the peripheral on port A.
Thanks to enen for testing this on a real cartridge:
Definition: Autofire.cc:5
static DummyAY8910Periphery & instance()
void writeB(byte, EmuTime::param) override
Similar to writeA, but writes port B.
void writeA(byte, EmuTime::param) override
Writes to the peripheral on port A.
Models the general purpose I/O ports of the AY8910.