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#include <span>
7
8namespace openmsx {
9
10class RomPlain final : public Rom8kBBlocks
11{
12public:
13 RomPlain(const DeviceConfig& config, Rom&& rom, RomType type);
14 [[nodiscard]] unsigned getBaseSizeAlignment() const override;
15
16private:
17 void guessHelper(unsigned offset, std::span<int, 3> pages);
18 [[nodiscard]] unsigned guessLocation(unsigned windowBase, unsigned windowSize);
19};
20
21} // namespace openmsx
22
23#endif
unsigned getBaseSizeAlignment() const override
The 'base' and 'size' attribute values need to be at least aligned to CacheLine::SIZE.
Definition RomPlain.cc:157
This file implemented 3 utility functions:
Definition Autofire.cc:9