openMSX
RomNettouYakyuu.hh
Go to the documentation of this file.
1#ifndef ROMNETTOUYAKYUU_HH
2#define ROMNETTOUYAKYUU_HH
3
4#include "RomBlocks.hh"
5#include "SamplePlayer.hh"
6#include <array>
7
8namespace openmsx {
9
10class RomNettouYakyuu final : public Rom8kBBlocks
11{
12public:
13 RomNettouYakyuu(const DeviceConfig& config, Rom&& rom);
14
15 void reset(EmuTime::param time) override;
16 void writeMem(word address, byte value, EmuTime::param time) override;
17 [[nodiscard]] byte* getWriteCacheLine(word address) override;
18
19 template<typename Archive>
20 void serialize(Archive& ar, unsigned version);
21
22private:
23 SamplePlayer samplePlayer;
24
25 // remember per region if writes are for the sample player or not
26 // there are 4 x 8kB regions in [0x4000-0xBFFF]
27 std::array<bool, 4> redirectToSamplePlayer;
28};
29
30} // namespace openmsx
31
32#endif
void serialize(Archive &ar, unsigned version)
byte * getWriteCacheLine(word address) override
Test that the memory in the interval [start, start + CacheLine::SIZE) is cacheable for writing.
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.
void reset(EmuTime::param time) override
This method is called on reset.
This file implemented 3 utility functions:
Definition Autofire.cc:11
uint16_t word
16 bit unsigned integer
Definition openmsx.hh:29