openMSX
RomPlain.hh
Go to the documentation of this file.
1#ifndef ROMPLAIN_HH
2#define ROMPLAIN_HH
3
4#include "RomBlocks.hh"
5#include "RomTypes.hh"
6
7namespace openmsx {
8
9class RomPlain final : public Rom8kBBlocks
10{
11public:
12 RomPlain(const DeviceConfig& config, Rom&& rom, RomType type);
13 [[nodiscard]] unsigned getBaseSizeAlignment() const override;
14
15private:
16 void guessHelper(unsigned offset, int* pages);
17 [[nodiscard]] unsigned guessLocation(unsigned windowBase, unsigned windowSize);
18};
19
20} // namespace openmsx
21
22#endif
unsigned getBaseSizeAlignment() const override
The 'base' and 'size' attribute values need to be at least aligned to CacheLine::SIZE.
Definition: RomPlain.cc:155
RomPlain(const DeviceConfig &config, Rom &&rom, RomType type)
Definition: RomPlain.cc:24
This file implemented 3 utility functions:
Definition: Autofire.cc:9