openMSX
RomMajutsushi.hh
Go to the documentation of this file.
1 #ifndef ROMMAJUTSUSHI_HH
2 #define ROMMAJUTSUSHI_HH
3 
4 #include "RomKonami.hh"
5 #include "DACSound8U.hh"
6 
7 namespace openmsx {
8 
9 class RomMajutsushi final : public RomKonami
10 {
11 public:
12  RomMajutsushi(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
RomKonami.hh
openmsx::RomMajutsushi::serialize
void serialize(Archive &ar, unsigned version)
Definition: RomMajutsushi.cc:37
openmsx::DeviceConfig
Definition: DeviceConfig.hh:20
openmsx::RomMajutsushi::reset
void reset(EmuTime::param time) override
This method is called on reset.
Definition: RomMajutsushi.cc:15
openmsx::RomMajutsushi
Definition: RomMajutsushi.hh:10
openmsx::RomMajutsushi::RomMajutsushi
RomMajutsushi(const DeviceConfig &config, Rom &&rom)
Definition: RomMajutsushi.cc:9
openmsx::RomMajutsushi::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: RomMajutsushi.cc:21
DACSound8U.hh
openmsx::MSXRom::rom
Rom rom
Definition: MSXRom.hh:20
openmsx::Rom
Definition: Rom.hh:21
openmsx::RomMajutsushi::getWriteCacheLine
byte * getWriteCacheLine(word address) const override
Test that the memory in the interval [start, start + CacheLine::SIZE) is cacheable for writing.
Definition: RomMajutsushi.cc:30
openmsx::word
uint16_t word
16 bit unsigned integer
Definition: openmsx.hh:29
openmsx::DACSound8U
Definition: DACSound8U.hh:11
openmsx
This file implemented 3 utility functions:
Definition: Autofire.cc:5
openmsx::RomKonami
Definition: RomKonami.hh:9