openMSX
RomKonami.hh
Go to the documentation of this file.
1 #ifndef ROMKONAMI_HH
2 #define ROMKONAMI_HH
3 
4 #include "RomBlocks.hh"
5 
6 namespace openmsx {
7 
8 class RomKonami : public Rom8kBBlocks
9 {
10 public:
11  RomKonami(const DeviceConfig& config, std::unique_ptr<Rom> rom);
12  virtual ~RomKonami() {}
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 
22 REGISTER_BASE_CLASS(RomKonami, "RomKonami");
23 
24 } // namespace openmsx
25 
26 #endif
void serialize(Archive &ar, unsigned version)
Definition: RomKonami.cc:63
RomKonami(const DeviceConfig &config, std::unique_ptr< Rom > rom)
Definition: RomKonami.cc:20
unsigned char byte
8 bit unsigned integer
Definition: openmsx.hh:33
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: RomKonami.cc:49
REGISTER_BASE_CLASS(Connector,"Connector")
unsigned short word
16 bit unsigned integer
Definition: openmsx.hh:38
void reset(EmuTime::param time) override
This method is called on reset.
Definition: RomKonami.cc:38
byte * getWriteCacheLine(word address) const override
Test that the memory in the interval [start, start + CacheLine::SIZE) is cacheable for writing...
Definition: RomKonami.cc:57
const std::unique_ptr< Rom > rom
Definition: MSXRom.hh:24
virtual ~RomKonami()
Definition: RomKonami.hh:12