1#ifndef PANASONICMEMORY_HH
2#define PANASONICMEMORY_HH
24 [[nodiscard]] std::span<const byte, 0x2000>
getRomBlock(
unsigned block)
const;
25 [[nodiscard]] std::span<const byte>
getRomRange(
unsigned first,
unsigned last)
const;
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
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 ...
std::span< const byte, 0x2000 > getRomBlock(unsigned block) const
std::span< const byte > getRomRange(unsigned first, unsigned last) const
This file implemented 3 utility functions: