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