openMSX
RomPlain.hh
Go to the documentation of this file.
1 #ifndef ROMPLAIN_HH
2 #define ROMPLAIN_HH
3 
4 #include "RomBlocks.hh"
5 
6 namespace openmsx {
7 
8 class RomPlain final : public Rom8kBBlocks
9 {
10 public:
12 
13  RomPlain(const DeviceConfig& config, Rom&& rom,
14  MirrorType mirrored, int start = -1);
15  unsigned getBaseSizeAlignment() const override;
16 
17 private:
18  void guessHelper(unsigned offset, int* pages);
19  unsigned guessLocation(unsigned windowBase, unsigned windowSize);
20 };
21 
22 } // namespace openmsx
23 
24 #endif
openmsx::RomPlain
Definition: RomPlain.hh:8
openmsx::DeviceConfig
Definition: DeviceConfig.hh:19
openmsx::RomPlain::MirrorType
MirrorType
Definition: RomPlain.hh:11
openmsx::RomPlain::NOT_MIRRORED
Definition: RomPlain.hh:11
openmsx::RomPlain::getBaseSizeAlignment
unsigned getBaseSizeAlignment() const override
The 'base' and 'size' attribute values need to be at least aligned to CacheLine::SIZE.
Definition: RomPlain.cc:136
openmsx::RomPlain::MIRRORED
Definition: RomPlain.hh:11
openmsx::RomPlain::RomPlain
RomPlain(const DeviceConfig &config, Rom &&rom, MirrorType mirrored, int start=-1)
Definition: RomPlain.cc:21
openmsx::RomBlocks
Definition: RomBlocks.hh:13
openmsx::MSXRom::rom
Rom rom
Definition: MSXRom.hh:20
openmsx::Rom
Definition: Rom.hh:20
openmsx
Thanks to enen for testing this on a real cartridge:
Definition: Autofire.cc:5
RomBlocks.hh