openMSX
RomHalnote.hh
Go to the documentation of this file.
1 #ifndef ROMHALNOTE_HH
2 #define ROMHALNOTE_HH
3 
4 #include "RomBlocks.hh"
5 
6 namespace openmsx {
7 
8 class RomHalnote final : public Rom8kBBlocks
9 {
10 public:
11  RomHalnote(const DeviceConfig& config, Rom&& rom);
12 
13  void reset(EmuTime::param time) override;
14  [[nodiscard]] byte readMem(word address, EmuTime::param time) override;
15  [[nodiscard]] const byte* getReadCacheLine(word address) const override;
16  void writeMem(word address, byte value, EmuTime::param time) override;
17  [[nodiscard]] byte* getWriteCacheLine(word address) const override;
18 
19  template<typename Archive>
20  void serialize(Archive& ar, unsigned version);
21 
22 private:
23  byte subBanks[2];
24  bool sramEnabled;
25  bool subMapperEnabled;
26 };
27 
28 } // namespace openmsx
29 
30 #endif
byte * getWriteCacheLine(word address) const override
Test that the memory in the interval [start, start + CacheLine::SIZE) is cacheable for writing.
Definition: RomHalnote.cc:128
void reset(EmuTime::param time) override
This method is called on reset.
Definition: RomHalnote.cc:48
RomHalnote(const DeviceConfig &config, Rom &&rom)
Definition: RomHalnote.cc:37
const byte * getReadCacheLine(word address) const override
Test that the memory in the interval [start, start + CacheLine::SIZE) is cacheable for reading.
Definition: RomHalnote.cc:63
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: RomHalnote.cc:80
void serialize(Archive &ar, unsigned version)
Definition: RomHalnote.cc:150
byte readMem(word address, EmuTime::param time) override
Read a byte from a location at a certain time from this device.
Definition: RomHalnote.cc:74
This file implemented 3 utility functions:
Definition: Autofire.cc:9
uint16_t word
16 bit unsigned integer
Definition: openmsx.hh:29