openMSX
|
#include <PanasonicMemory.hh>
Public Member Functions | |
PanasonicMemory (MSXMotherBoard &motherBoard) | |
void | registerRam (Ram &ram) |
Pass reference of the actual Ram block for use in DRAM mode and RAM access via the ROM mapper. | |
std::span< const byte, 0x2000 > | getRomBlock (unsigned block) const |
std::span< const byte > | getRomRange (unsigned first, unsigned last) const |
byte * | getRamBlock (unsigned block) |
Note that this is always unchecked RAM! There is no UMR detection when accessing Ram in DRAM mode or via the ROM mapper! | |
unsigned | getRamSize () const |
void | setDRAM (bool dram) |
bool | isWritable (unsigned address) const |
Definition at line 14 of file PanasonicMemory.hh.
|
explicit |
Definition at line 15 of file PanasonicMemory.cc.
References openmsx::MSXMotherBoard::getMachineConfig().
byte * openmsx::PanasonicMemory::getRamBlock | ( | unsigned | block | ) |
Note that this is always unchecked RAM! There is no UMR detection when accessing Ram in DRAM mode or via the ROM mapper!
Definition at line 81 of file PanasonicMemory.cc.
Referenced by openmsx::RomPanasonic::RomPanasonic().
|
inline |
Definition at line 31 of file PanasonicMemory.hh.
Referenced by openmsx::RomPanasonic::RomPanasonic().
std::span< const byte, 0x2000 > openmsx::PanasonicMemory::getRomBlock | ( | unsigned | block | ) | const |
Definition at line 37 of file PanasonicMemory.cc.
Referenced by openmsx::RomDRAM::getReadCacheLine(), and openmsx::RomDRAM::RomDRAM().
std::span< const byte > openmsx::PanasonicMemory::getRomRange | ( | unsigned | first, |
unsigned | last | ||
) | const |
Definition at line 59 of file PanasonicMemory.cc.
References subspan().
bool openmsx::PanasonicMemory::isWritable | ( | unsigned | address | ) | const |
Definition at line 100 of file PanasonicMemory.cc.
Referenced by openmsx::PanasonicRam::getWriteCacheLine(), openmsx::PanasonicRam::writeIO(), and openmsx::PanasonicRam::writeMem().
void openmsx::PanasonicMemory::registerRam | ( | Ram & | ram | ) |
Pass reference of the actual Ram block for use in DRAM mode and RAM access via the ROM mapper.
Note that this is always unchecked Ram!
Definition at line 31 of file PanasonicMemory.cc.
References openmsx::Ram::data(), and openmsx::Ram::size().
Referenced by openmsx::PanasonicRam::PanasonicRam().
void openmsx::PanasonicMemory::setDRAM | ( | bool | dram | ) |
Definition at line 92 of file PanasonicMemory.cc.
References openmsx::MSXCPU::invalidateAllSlotsRWCache().