openMSX
|
#include <SRAM.hh>
Classes | |
struct | DontLoadTag |
Public Member Functions | |
SRAM (size_t size, const XMLElement &xml, DontLoadTag) | |
SRAM (const std::string &name, static_string_view description, size_t size, const DeviceConfig &config, DontLoadTag) | |
SRAM (const std::string &name, size_t size, const DeviceConfig &config, const char *header=nullptr, bool *loaded=nullptr) | |
SRAM (const std::string &name, static_string_view description, size_t size, const DeviceConfig &config, const char *header=nullptr, bool *loaded=nullptr) | |
~SRAM () | |
const byte & | operator[] (size_t addr) const |
void | write (size_t addr, byte value) |
void | memset (size_t addr, byte c, size_t size) |
size_t | size () const |
template<typename Archive > | |
void | serialize (Archive &ar, unsigned version) |
openmsx::SRAM::SRAM | ( | size_t | size, |
const XMLElement & | xml, | ||
DontLoadTag | |||
) |
openmsx::SRAM::SRAM | ( | const std::string & | name, |
static_string_view | description, | ||
size_t | size, | ||
const DeviceConfig & | config, | ||
DontLoadTag | |||
) |
openmsx::SRAM::SRAM | ( | const std::string & | name, |
size_t | size, | ||
const DeviceConfig & | config, | ||
const char * | header = nullptr , |
||
bool * | loaded = nullptr |
||
) |
openmsx::SRAM::SRAM | ( | const std::string & | name, |
static_string_view | description, | ||
size_t | size, | ||
const DeviceConfig & | config, | ||
const char * | header = nullptr , |
||
bool * | loaded = nullptr |
||
) |
void openmsx::SRAM::memset | ( | size_t | addr, |
byte | c, | ||
size_t | size | ||
) |
Definition at line 73 of file SRAM.cc.
References ranges::fill(), openmsx::TrackedRam::getWriteBackdoor(), and size().
|
inline |
void openmsx::SRAM::serialize | ( | Archive & | ar, |
unsigned | version | ||
) |
|
inline |
Definition at line 35 of file SRAM.hh.
References openmsx::TrackedRam::size().
Referenced by openmsx::MSXToshibaTcx200x::getReadCacheLine(), memset(), operator[](), openmsx::MSXToshibaTcx200x::peekMem(), write(), and openmsx::MSXToshibaTcx200x::writeMem().
void openmsx::SRAM::write | ( | size_t | addr, |
byte | value | ||
) |
Definition at line 64 of file SRAM.cc.
References size(), and openmsx::TrackedRam::write().
Referenced by openmsx::MegaSCSI::writeMem(), openmsx::ESE_RAM::writeMem(), openmsx::ESE_SCC::writeMem(), openmsx::MSXPac::writeMem(), openmsx::MSXToshibaTcx200x::writeMem(), openmsx::MSXModem::writeMem(), openmsx::MSXFmPac::writeMem(), and openmsx::YamahaSKW01::writeMem().