openMSX
SNPSG.hh
Go to the documentation of this file.
1 #ifndef SNPSG_HH
2 #define SNPSG_HH
3 
4 #include "MSXDevice.hh"
5 #include <memory>
6 
7 namespace openmsx {
8 
9 class SN76489;
10 
14 class SNPSG final : public MSXDevice
15 {
16 public:
17  SNPSG(const DeviceConfig& config);
18  ~SNPSG() override;
19 
20  void reset(EmuTime::param time) override;
21  void writeIO(word port, byte value, EmuTime::param time) override;
22 
23  template<typename Archive>
24  void serialize(Archive& ar, unsigned version);
25 
26 private:
27  std::unique_ptr<SN76489> sn76489;
28 };
29 
30 } // namespace openmsx
31 
32 #endif
openmsx::MSXDevice
An MSXDevice is an emulated hardware component connected to the bus of the emulated MSX.
Definition: MSXDevice.hh:32
openmsx::DeviceConfig
Definition: DeviceConfig.hh:20
openmsx::SN76489
SN76489
Definition: SN76489.cc:329
openmsx::SNPSG::reset
void reset(EmuTime::param time) override
This method is called on reset.
Definition: SNPSG.cc:16
MSXDevice.hh
openmsx::SNPSG::~SNPSG
~SNPSG() override
openmsx::word
uint16_t word
16 bit unsigned integer
Definition: openmsx.hh:29
openmsx::SNPSG
Device that puts the Texas Instruments SN76489 sound chip at a fixed I/O address.
Definition: SNPSG.hh:15
openmsx::SNPSG::writeIO
void writeIO(word port, byte value, EmuTime::param time) override
Write a byte to a given IO port at a certain time to this device.
Definition: SNPSG.cc:21
openmsx::SNPSG::serialize
void serialize(Archive &ar, unsigned version)
Definition: SNPSG.cc:28
openmsx
This file implemented 3 utility functions:
Definition: Autofire.cc:5
openmsx::SNPSG::SNPSG
SNPSG(const DeviceConfig &config)
Definition: SNPSG.cc:8