openMSX
DummyAY8910Periphery.hh
Go to the documentation of this file.
1#ifndef DUMMYAY8910PERIPHERY_HH
2#define DUMMYAY8910PERIPHERY_HH
3
4#include "AY8910Periphery.hh"
5
6namespace openmsx {
7
9{
10public:
11 [[nodiscard]] static DummyAY8910Periphery& instance()
12 {
13 static DummyAY8910Periphery oneInstance;
14 return oneInstance;
15 }
16
17 [[nodiscard]] byte readA(EmuTime::param /*time*/) override { return 255; }
18 [[nodiscard]] 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
22private:
23 DummyAY8910Periphery() = default;
24 ~DummyAY8910Periphery() = default;
25};
26
27}; // namespace openmsx
28
29#endif
Models the general purpose I/O ports of the AY8910.
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.
byte readA(EmuTime::param) override
Reads the state of the peripheral on port A.
byte readB(EmuTime::param) override
Similar to readA, but reads port B.
This file implemented 3 utility functions:
Definition Autofire.cc:11