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 "SN76489.hh"
6
7namespace openmsx {
8
12class SNPSG final : public MSXDevice
13{
14public:
15 SNPSG(const DeviceConfig& config);
16
17 void reset(EmuTime::param time) override;
18 void writeIO(word port, byte value, EmuTime::param time) override;
19
20 template<typename Archive>
21 void serialize(Archive& ar, unsigned version);
22
23private:
24 SN76489 sn76489;
25};
26
27} // namespace openmsx
28
29#endif
An MSXDevice is an emulated hardware component connected to the bus of the emulated MSX.
Definition: MSXDevice.hh:33
This class implements the Texas Instruments SN76489 sound chip.
Definition: SN76489.hh:25
Device that puts the Texas Instruments SN76489 sound chip at a fixed I/O address.
Definition: SNPSG.hh:13
void serialize(Archive &ar, unsigned version)
Definition: SNPSG.cc:25
SNPSG(const DeviceConfig &config)
Definition: SNPSG.cc:7
void reset(EmuTime::param time) override
This method is called on reset.
Definition: SNPSG.cc:13
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:18
This file implemented 3 utility functions:
Definition: Autofire.cc:9
uint16_t word
16 bit unsigned integer
Definition: openmsx.hh:29