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 
7 namespace openmsx {
8 
9 class RomSynthesizer final : public Rom16kBBlocks
10 {
11 public:
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  byte* getWriteCacheLine(word address) const override;
17 
18  template<typename Archive>
19  void serialize(Archive& ar, unsigned version);
20 
21 private:
22  DACSound8U dac;
23 };
24 
25 } // namespace openmsx
26 
27 #endif
openmsx::RomSynthesizer::serialize
void serialize(Archive &ar, unsigned version)
Definition: RomSynthesizer.cc:59
openmsx::DeviceConfig
Definition: DeviceConfig.hh:19
openmsx::RomSynthesizer::reset
void reset(EmuTime::param time) override
This method is called on reset.
Definition: RomSynthesizer.cc:37
openmsx::RomSynthesizer
Definition: RomSynthesizer.hh:9
openmsx::RomBlocks
Definition: RomBlocks.hh:13
openmsx::RomSynthesizer::getWriteCacheLine
byte * getWriteCacheLine(word address) const override
Test that the memory in the interval [start, start + CacheLine::SIZE) is cacheable for writing.
Definition: RomSynthesizer.cc:49
DACSound8U.hh
openmsx::RomSynthesizer::writeMem
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.
Definition: RomSynthesizer.cc:42
openmsx::MSXRom::rom
Rom rom
Definition: MSXRom.hh:20
openmsx::Rom
Definition: Rom.hh:20
openmsx::word
uint16_t word
16 bit unsigned integer
Definition: openmsx.hh:29
openmsx::DACSound8U
Definition: DACSound8U.hh:10
openmsx
Thanks to enen for testing this on a real cartridge:
Definition: Autofire.cc:5
openmsx::RomSynthesizer::RomSynthesizer
RomSynthesizer(const DeviceConfig &config, Rom &&rom)
Definition: RomSynthesizer.cc:25
RomBlocks.hh