OXYGENHUB
◆ main openmsx / src / memory / RomSynthesizer.hh
553 B · C++ · last changed chore(): initial commit 1 month ago source blame history raw
1
#ifndef ROMSYNTHESIZER_HH
2
#define ROMSYNTHESIZER_HH
3
4
#include "RomBlocks.hh"
5
6
#include "DACSound8U.hh"
7
8
namespace openmsx {
9
10
class RomSynthesizer final : public Rom16kBBlocks
11
{
12
public:
13
	RomSynthesizer(const DeviceConfig& config, Rom&& rom);
14
15
	void reset(EmuTime time) override;
16
	void writeMem(uint16_t address, byte value, EmuTime time) override;
17
	[[nodiscard]] byte* getWriteCacheLine(uint16_t address) override;
18
19
	template<typename Archive>
20
	void serialize(Archive& ar, unsigned version);
21
22
private:
23
	DACSound8U dac;
24
};
25
26
} // namespace openmsx
27
28
#endif