OXYGENHUB
◆ main openmsx / src / sound / MSXOPL3Cartridge.hh
632 B · C++ · last changed chore(): initial commit 1 month ago source blame history raw
e8555c89 Andy McCall 1
#ifndef MSXOPL3CARTRIDGE_HH
2
#define MSXOPL3CARTRIDGE_HH
3
4
#include "MSXDevice.hh"
5
#include "YMF262.hh"
6
7
namespace openmsx {
8
9
class MSXOPL3Cartridge final : public MSXDevice
10
{
11
public:
12
	explicit MSXOPL3Cartridge(const DeviceConfig& config);
13
14
	void reset(EmuTime time) override;
15
	[[nodiscard]] byte readIO(uint16_t port, EmuTime time) override;
16
	[[nodiscard]] byte peekIO(uint16_t port, EmuTime time) const override;
17
	void writeIO(uint16_t port, byte value, EmuTime time) override;
18
19
	template<typename Archive>
20
	void serialize(Archive& ar, unsigned version);
21
22
private:
23
	YMF262 ymf262;
24
	int opl3latch;
25
};
26
27
} // namespace openmsx
28
29
#endif