openMSX
Public Member Functions | List of all members
openmsx::PanasonicMemory Class Reference

#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 bytegetRomRange (unsigned first, unsigned last) const
 
bytegetRamBlock (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
 

Detailed Description

Definition at line 14 of file PanasonicMemory.hh.

Constructor & Destructor Documentation

◆ PanasonicMemory()

openmsx::PanasonicMemory::PanasonicMemory ( MSXMotherBoard motherBoard)
explicit

Definition at line 15 of file PanasonicMemory.cc.

References openmsx::MSXMotherBoard::getMachineConfig().

Member Function Documentation

◆ getRamBlock()

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().

◆ getRamSize()

unsigned openmsx::PanasonicMemory::getRamSize ( ) const
inline

Definition at line 31 of file PanasonicMemory.hh.

Referenced by openmsx::RomPanasonic::RomPanasonic().

◆ getRomBlock()

std::span< const byte, 0x2000 > openmsx::PanasonicMemory::getRomBlock ( unsigned  block) const

◆ getRomRange()

std::span< const byte > openmsx::PanasonicMemory::getRomRange ( unsigned  first,
unsigned  last 
) const

Definition at line 59 of file PanasonicMemory.cc.

References subspan().

◆ isWritable()

bool openmsx::PanasonicMemory::isWritable ( unsigned  address) const

◆ registerRam()

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().

◆ setDRAM()

void openmsx::PanasonicMemory::setDRAM ( bool  dram)

Definition at line 92 of file PanasonicMemory.cc.

References openmsx::MSXCPU::invalidateAllSlotsRWCache().


The documentation for this class was generated from the following files: