openMSX
RomSynthesizer.hh
Go to the documentation of this file.
1#ifndef ROMSYNTHESIZER_HH
2#define ROMSYNTHESIZER_HH
3
4#include "RomBlocks.hh"
5#include "DACSound8U.hh"
6
7namespace openmsx {
8
9class RomSynthesizer final : public Rom16kBBlocks
10{
11public:
12 RomSynthesizer(const DeviceConfig& config, Rom&& rom);
13
14 void reset(EmuTime::param time) override;
15 void writeMem(word address, byte value, EmuTime::param time) override;
16 [[nodiscard]] byte* getWriteCacheLine(word address) const override;
17
18 template<typename Archive>
19 void serialize(Archive& ar, unsigned version);
20
21private:
22 DACSound8U dac;
23};
24
25} // namespace openmsx
26
27#endif
void writeMem(word address, byte value, EmuTime::param time) override
Write a given byte to a given location at a certain time to this device.
byte * getWriteCacheLine(word address) const override
Test that the memory in the interval [start, start + CacheLine::SIZE) is cacheable for writing.
void reset(EmuTime::param time) override
This method is called on reset.
void serialize(Archive &ar, unsigned version)
This file implemented 3 utility functions:
Definition Autofire.cc:9
uint16_t word
16 bit unsigned integer
Definition openmsx.hh:29