| 1 |
#ifndef ROMPLAIN_HH |
| 2 |
#define ROMPLAIN_HH |
| 3 |
|
| 4 |
#include "RomBlocks.hh" |
| 5 |
#include "RomTypes.hh" |
| 6 |
|
| 7 |
#include <span> |
| 8 |
|
| 9 |
namespace openmsx { |
| 10 |
|
| 11 |
class RomPlain final : public Rom8kBBlocks |
| 12 |
{ |
| 13 |
public: |
| 14 |
RomPlain(const DeviceConfig& config, Rom&& rom, RomType type); |
| 15 |
[[nodiscard]] unsigned getBaseSizeAlignment() const override; |
| 16 |
|
| 17 |
private: |
| 18 |
void guessHelper(unsigned offset, std::span<int, 3> pages) const; |
| 19 |
[[nodiscard]] unsigned guessLocation(unsigned windowBase, unsigned windowSize) const; |
| 20 |
}; |
| 21 |
|
| 22 |
} |
| 23 |
|
| 24 |
#endif |