openMSX
|
#include <Rom.hh>
Public Member Functions | |
Rom (std::string name, static_string_view description, const DeviceConfig &config, std::string_view id={}) | |
Rom (Rom &&other) noexcept | |
~Rom () | |
const byte & | operator[] (size_t address) const |
auto | size () const |
auto | begin () const |
auto | end () const |
std::string_view | getFilename () const |
const std::string & | getName () const |
std::string_view | getDescription () const |
const Sha1Sum & | getOriginalSHA1 () const |
const Sha1Sum & | getSHA1 () const |
void | addPadding (size_t newSize, byte filler=0xff) |
void | getInfo (TclObject &result) const |
Add dict values with info to result. | |
openmsx::Rom::Rom | ( | std::string | name, |
static_string_view | description, | ||
const DeviceConfig & | config, | ||
std::string_view | id = {} |
||
) |
Definition at line 55 of file Rom.cc.
References openmsx::XMLElement::getChildren(), openmsx::DeviceConfig::getFileContext(), openmsx::DeviceConfig::getMotherBoard(), openmsx::DeviceConfig::getXML(), id, and strAppend().
|
default |
void openmsx::Rom::addPadding | ( | size_t | newSize, |
byte | filler = 0xff |
||
) |
Definition at line 367 of file Rom.cc.
References ranges::copy(), ranges::fill(), and openmsx::MemBuffer< T, ALIGNMENT >::subspan().
Referenced by openmsx::RomBlocks< BANK_SIZE_ >::RomBlocks().
|
inline |
Definition at line 43 of file Rom.hh.
Referenced by openmsx::RomDebuggable::getDescription().
std::string_view openmsx::Rom::getFilename | ( | ) | const |
Definition at line 345 of file Rom.cc.
References openmsx::File::getURL(), and openmsx::File::is_open().
Referenced by openmsx::MSXRom::getExtraDeviceInfo(), and getInfo().
void openmsx::Rom::getInfo | ( | TclObject & | result | ) | const |
Add dict values with info to result.
Definition at line 380 of file Rom.cc.
References openmsx::TclObject::addDictKeyValues(), getFilename(), getOriginalSHA1(), getSHA1(), and openmsx::toString().
Referenced by openmsx::MSXKanji::getExtraDeviceInfo(), and openmsx::MSXKanji12::getExtraDeviceInfo().
|
inline |
Definition at line 42 of file Rom.hh.
Referenced by openmsx::RomDebuggable::RomDebuggable(), openmsx::RomPlain::RomPlain(), and openmsx::RomDebuggable::~RomDebuggable().
const Sha1Sum & openmsx::Rom::getOriginalSHA1 | ( | ) | const |
Definition at line 350 of file Rom.cc.
References openmsx::SHA1::calc(), and openmsx::Sha1Sum::empty().
Referenced by openmsx::RomFactory::create(), openmsx::MSXRom::getInfo(), getInfo(), getSHA1(), and openmsx::RomBlocks< BANK_SIZE_ >::RomBlocks().
const Sha1Sum & openmsx::Rom::getSHA1 | ( | ) | const |
Definition at line 358 of file Rom.cc.
References openmsx::Sha1Sum::empty(), and getOriginalSHA1().
Referenced by openmsx::RomFactory::create(), openmsx::MSXRom::getInfo(), and getInfo().
|
inline |
|
inline |
Definition at line 37 of file Rom.hh.
Referenced by openmsx::CanonWordProcessor::CanonWordProcessor(), openmsx::ColecoSuperGameModule::ColecoSuperGameModule(), openmsx::RomFactory::create(), openmsx::GoudaSCSI::getReadCacheLine(), openmsx::FraelSwitchableROM::getReadCacheLine(), openmsx::MSXMusicBase::getReadCacheLine(), openmsx::MSXYamahaSFG::getReadCacheLine(), openmsx::RomDebuggable::getSize(), openmsx::MSXKanji12::MSXKanji12(), openmsx::MSXModem::MSXModem(), openmsx::MSXMusicBase::MSXMusicBase(), openmsx::MSXKanji::peekIO(), openmsx::MSXYamahaSFG::peekMem(), openmsx::MSXKanji12::peekSwitchedIO(), openmsx::RomBlocks< BANK_SIZE_ >::RomBlocks(), openmsx::RomColecoMegaCart::RomColecoMegaCart(), openmsx::RomDooly::RomDooly(), openmsx::RomFSA1FM1::RomFSA1FM1(), openmsx::RomHalnote::RomHalnote(), openmsx::RomHolyQuran2::RomHolyQuran2(), openmsx::RomKonami::RomKonami(), openmsx::RomKonamiSCC::RomKonamiSCC(), openmsx::RomPlain::RomPlain(), openmsx::SpectravideoFDC::SpectravideoFDC(), openmsx::VLM5030::VLM5030(), openmsx::NowindInterface::writeMem(), openmsx::YamahaSKW01::YamahaSKW01(), and openmsx::YMF278::YMF278().