1 #ifndef PANASONICMEMORY_HH
2 #define PANASONICMEMORY_HH
24 [[nodiscard]]
const byte*
getRomBlock(
unsigned block);
25 [[nodiscard]]
const byte*
getRomRange(
unsigned first,
unsigned last);
31 [[nodiscard]]
unsigned getRamSize()
const {
return ramSize; }
33 [[nodiscard]]
bool isWritable(
unsigned address)
const;
38 const std::optional<Rom> rom;
void registerRam(Ram &ram)
Pass reference of the actual Ram block for use in DRAM mode and RAM access via the ROM mapper.
bool isWritable(unsigned address) const
const byte * getRomBlock(unsigned block)
PanasonicMemory(MSXMotherBoard &motherBoard)
const byte * getRomRange(unsigned first, unsigned last)
unsigned getRamSize() const
byte * getRamBlock(unsigned block)
Note that this is always unchecked RAM! There is no UMR detection when accessing Ram in DRAM mode or ...
This file implemented 3 utility functions: