openMSX
memory
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
8
namespace
openmsx
{
9
10
class
RomPlain
final :
public
Rom8kBBlocks
11
{
12
public
:
13
RomPlain
(
const
DeviceConfig
& config,
Rom
&&
rom
,
RomType
type);
14
[[nodiscard]]
unsigned
getBaseSizeAlignment
()
const override
;
15
16
private
:
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
RomBlocks.hh
RomTypes.hh
openmsx::DeviceConfig
Definition:
DeviceConfig.hh:21
openmsx::MSXRom::rom
Rom rom
Definition:
MSXRom.hh:26
openmsx::RomBlocks
Definition:
RomBlocks.hh:15
openmsx::RomPlain
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:157
openmsx::RomPlain::RomPlain
RomPlain(const DeviceConfig &config, Rom &&rom, RomType type)
Definition:
RomPlain.cc:25
openmsx::Rom
Definition:
Rom.hh:25
openmsx
This file implemented 3 utility functions:
Definition:
Autofire.cc:9
openmsx::RomType
RomType
Definition:
RomTypes.hh:6
Generated on Wed Sep 27 2023 14:13:12 for openMSX by
1.9.4