OXYGENHUB
◆ main openmsx / src / sound / SNPSG.hh
532 B · C++ · last changed chore(): initial commit 1 month ago source blame history raw
e8555c89 Andy McCall 1
#ifndef SNPSG_HH
2
#define SNPSG_HH
3
4
#include "MSXDevice.hh"
5
#include "SN76489.hh"
6
7
namespace openmsx {
8
9
/** Device that puts the Texas Instruments SN76489 sound chip at
10
  * a fixed I/O address.
11
  */
12
class SNPSG final : public MSXDevice
13
{
14
public:
15
	explicit SNPSG(const DeviceConfig& config);
16
17
	void reset(EmuTime time) override;
18
	void writeIO(uint16_t port, byte value, EmuTime time) override;
19
20
	template<typename Archive>
21
	void serialize(Archive& ar, unsigned version);
22
23
private:
24
	SN76489 sn76489;
25
};
26
27
} // namespace openmsx
28
29
#endif