openMSX
|
An MSXDevice is an emulated hardware component connected to the bus of the emulated MSX. More...
#include <MSXDevice.hh>
Public Types | |
using | Devices = std::vector< MSXDevice * > |
Public Member Functions | |
MSXDevice (const MSXDevice &)=delete | |
MSXDevice (MSXDevice &&)=delete | |
MSXDevice & | operator= (const MSXDevice &)=delete |
MSXDevice & | operator= (MSXDevice &&)=delete |
virtual | ~MSXDevice ()=0 |
const HardwareConfig & | getHardwareConfig () const |
Returns the hardwareconfig this device belongs to. | |
void | testRemove (std::span< const std::unique_ptr< MSXDevice > > removed) const |
Checks whether this device can be removed (no other device has a reference to it). | |
virtual void | reset (EmuTime::param time) |
This method is called on reset. | |
virtual byte | readIRQVector () |
Gets IRQ vector used in IM2. | |
virtual void | powerDown (EmuTime::param time) |
This method is called when MSX is powered down. | |
virtual void | powerUp (EmuTime::param time) |
This method is called when MSX is powered up. | |
virtual const std::string & | getName () const |
Returns a human-readable name for this device. | |
virtual void | getNameList (TclObject &result) const |
Returns list of name(s) of this device. | |
void | getDeviceInfo (TclObject &result) const |
Get device info. | |
void | getVisibleMemRegion (unsigned &base, unsigned &size) const |
Returns the range where this device is visible in memory. | |
virtual byte | readIO (word port, EmuTime::param time) |
Read a byte from an IO port at a certain time from this device. | |
virtual void | writeIO (word port, byte value, EmuTime::param time) |
Write a byte to a given IO port at a certain time to this device. | |
virtual byte | peekIO (word port, EmuTime::param time) const |
Read a byte from a given IO port. | |
virtual byte | readMem (word address, EmuTime::param time) |
Read a byte from a location at a certain time from this device. | |
virtual void | writeMem (word address, byte value, EmuTime::param time) |
Write a given byte to a given location at a certain time to this device. | |
virtual const byte * | getReadCacheLine (word start) const |
Test that the memory in the interval [start, start + CacheLine::SIZE) is cacheable for reading. | |
virtual byte * | getWriteCacheLine (word start) |
Test that the memory in the interval [start, start + CacheLine::SIZE) is cacheable for writing. | |
virtual byte | peekMem (word address, EmuTime::param time) const |
Read a byte from a given memory location. | |
virtual void | globalWrite (word address, byte value, EmuTime::param time) |
Global writes. | |
virtual void | globalRead (word address, EmuTime::param time) |
Global reads. | |
void | invalidateDeviceRWCache () |
Calls MSXCPUInterface::invalidateXXCache() for the specific (part of) the slot that this device is located in. | |
void | invalidateDeviceRCache () |
void | invalidateDeviceWCache () |
void | invalidateDeviceRWCache (unsigned start, unsigned size) |
void | invalidateDeviceRCache (unsigned start, unsigned size) |
void | invalidateDeviceWCache (unsigned start, unsigned size) |
void | fillDeviceRWCache (unsigned start, unsigned size, byte *rwData) |
Calls MSXCPUInterface::fillXXCache() for the specific (part of) the slot that this device is located in. | |
void | fillDeviceRWCache (unsigned start, unsigned size, const byte *rData, byte *wData) |
void | fillDeviceRCache (unsigned start, unsigned size, const byte *rData) |
void | fillDeviceWCache (unsigned start, unsigned size, byte *wData) |
MSXMotherBoard & | getMotherBoard () const |
Get the mother board this device belongs to. | |
const XMLElement & | getDeviceConfig () const |
Get the configuration section for this device. | |
const DeviceConfig & | getDeviceConfig2 () const |
const Devices & | getReferences () const |
Get the device references that are specified for this device. | |
EmuTime::param | getCurrentTime () const |
MSXCPU & | getCPU () const |
MSXCPUInterface & | getCPUInterface () const |
Scheduler & | getScheduler () const |
MSXCliComm & | getCliComm () const |
Reactor & | getReactor () const |
CommandController & | getCommandController () const |
PluggingController & | getPluggingController () const |
LedStatus & | getLedStatus () const |
template<typename Archive > | |
void | serialize (Archive &ar, unsigned version) |
Static Public Attributes | |
static std::array< byte, 0x10000 > | unmappedRead |
static std::array< byte, 0x10000 > | unmappedWrite |
Protected Member Functions | |
MSXDevice (const DeviceConfig &config, std::string_view name) | |
Every MSXDevice has a config entry; this constructor gets some device properties from that config entry. | |
MSXDevice (const DeviceConfig &config) | |
virtual void | init () |
virtual unsigned | getBaseSizeAlignment () const |
The 'base' and 'size' attribute values need to be at least aligned to CacheLine::SIZE. | |
virtual bool | allowUnaligned () const |
By default we don't allow unaligned <mem> specifications in the config file. | |
virtual void | getExtraDeviceInfo (TclObject &result) const |
byte | getPrimarySlot () const |
Protected Attributes | |
std::string | deviceName |
Friends | |
class | DeviceFactory |
Constructing a MSXDevice is a 2-step process, after the constructor is called this init() method must be called. | |
An MSXDevice is an emulated hardware component connected to the bus of the emulated MSX.
There is no communication among devices, only between devices and the CPU.
Definition at line 35 of file MSXDevice.hh.
using openmsx::MSXDevice::Devices = std::vector<MSXDevice*> |
Definition at line 43 of file MSXDevice.hh.
|
delete |
|
delete |
|
pure virtual |
Definition at line 53 of file MSXDevice.cc.
|
protected |
Every MSXDevice has a config entry; this constructor gets some device properties from that config entry.
config | config entry for this device. |
name | The name for the MSXDevice (will be made unique) |
Definition at line 21 of file MSXDevice.cc.
|
explicitprotected |
Definition at line 27 of file MSXDevice.cc.
References getDeviceConfig().
|
inlineprotectedvirtual |
By default we don't allow unaligned <mem> specifications in the config file.
Though for a machine like 'Victor HC-95A' is it useful to model it with combinations of unaligned devices. So we do allow it for a select few devices: devices that promise to not call any of the 'fillDeviceXXXCache()' methods.
Reimplemented in openmsx::VictorFDC, openmsx::MSXMirrorDevice, openmsx::MSXVictorHC9xSystemControl, and openmsx::MSXRS232.
Definition at line 296 of file MSXDevice.hh.
Referenced by fillDeviceRCache(), fillDeviceRWCache(), and fillDeviceWCache().
void openmsx::MSXDevice::fillDeviceRCache | ( | unsigned | start, |
unsigned | size, | ||
const byte * | rData | ||
) |
Definition at line 515 of file MSXDevice.cc.
References allowUnaligned(), openmsx::MSXCPUInterface::fillRCache(), and getCPUInterface().
void openmsx::MSXDevice::fillDeviceRWCache | ( | unsigned | start, |
unsigned | size, | ||
byte * | rwData | ||
) |
Calls MSXCPUInterface::fillXXCache() for the specific (part of) the slot that this device is located in.
Definition at line 506 of file MSXDevice.cc.
References fillDeviceRWCache().
Referenced by fillDeviceRWCache(), openmsx::MSXMemoryMapper::writeIO(), and openmsx::PanasonicRam::writeIO().
void openmsx::MSXDevice::fillDeviceRWCache | ( | unsigned | start, |
unsigned | size, | ||
const byte * | rData, | ||
byte * | wData | ||
) |
Definition at line 510 of file MSXDevice.cc.
References allowUnaligned(), openmsx::MSXCPUInterface::fillRWCache(), and getCPUInterface().
void openmsx::MSXDevice::fillDeviceWCache | ( | unsigned | start, |
unsigned | size, | ||
byte * | wData | ||
) |
Definition at line 520 of file MSXDevice.cc.
References allowUnaligned(), openmsx::MSXCPUInterface::fillWCache(), and getCPUInterface().
|
protectedvirtual |
The 'base' and 'size' attribute values need to be at least aligned to CacheLine::SIZE.
Though some devices may need a stricter alignment. In that case they must override this method.
Reimplemented in openmsx::MSXMemoryMapperBase, openmsx::RomBlocks< BANK_SIZE_ >, and openmsx::RomPlain.
Definition at line 396 of file MSXDevice.cc.
References openmsx::CacheLine::SIZE.
Referenced by openmsx::RomPlain::getBaseSizeAlignment().
MSXCliComm & openmsx::MSXDevice::getCliComm | ( | ) | const |
Definition at line 141 of file MSXDevice.cc.
References getMotherBoard(), and openmsx::MSXMotherBoard::getMSXCliComm().
Referenced by openmsx::MSXMatsushita::serialize().
CommandController & openmsx::MSXDevice::getCommandController | ( | ) | const |
Definition at line 149 of file MSXDevice.cc.
References openmsx::MSXMotherBoard::getCommandController(), and getMotherBoard().
Referenced by openmsx::V9990CmdEngine::V9990CmdEngine(), and openmsx::VDP::VDP().
MSXCPU & openmsx::MSXDevice::getCPU | ( | ) | const |
Definition at line 129 of file MSXDevice.cc.
References openmsx::MSXMotherBoard::getCPU(), and getMotherBoard().
Referenced by openmsx::Carnivore2::globalRead(), openmsx::TurboRFDC::readMem(), openmsx::RomHolyQuran2::readMem(), openmsx::MSXCielTurbo::writeIO(), openmsx::TurboRFDC::writeMem(), and openmsx::MSXMatsushita::writeSwitchedIO().
MSXCPUInterface & openmsx::MSXDevice::getCPUInterface | ( | ) | const |
Definition at line 133 of file MSXDevice.cc.
References openmsx::MSXMotherBoard::getCPUInterface(), and getMotherBoard().
Referenced by openmsx::ColecoSuperGameModule::ColecoSuperGameModule(), fillDeviceRCache(), fillDeviceRWCache(), fillDeviceWCache(), openmsx::MSXMatsushita::init(), invalidateDeviceRCache(), invalidateDeviceRWCache(), invalidateDeviceWCache(), openmsx::MSXMidi::MSXMidi(), openmsx::MSXMultiMemDevice::MSXMultiMemDevice(), openmsx::MSXDeviceSwitch::registerDevice(), openmsx::RomAlAlamiah30in1::RomAlAlamiah30in1(), openmsx::RomArc::RomArc(), openmsx::RomKonamiKeyboardMaster::RomKonamiKeyboardMaster(), openmsx::RomManbow2::RomManbow2(), openmsx::RomRetroHard31in1::RomRetroHard31in1(), openmsx::RomZemina90in1::RomZemina90in1(), openmsx::MSXDeviceSwitch::unregisterDevice(), openmsx::Carnivore2::~Carnivore2(), openmsx::ColecoSuperGameModule::~ColecoSuperGameModule(), openmsx::MegaFlashRomSCCPlus::~MegaFlashRomSCCPlus(), openmsx::MegaFlashRomSCCPlusSD::~MegaFlashRomSCCPlusSD(), openmsx::MSXMidi::~MSXMidi(), openmsx::ReproCartridgeV1::~ReproCartridgeV1(), openmsx::ReproCartridgeV2::~ReproCartridgeV2(), openmsx::RomAlAlamiah30in1::~RomAlAlamiah30in1(), openmsx::RomArc::~RomArc(), openmsx::RomKonamiKeyboardMaster::~RomKonamiKeyboardMaster(), openmsx::RomManbow2::~RomManbow2(), openmsx::RomRetroHard31in1::~RomRetroHard31in1(), and openmsx::RomZemina90in1::~RomZemina90in1().
EmuTime::param openmsx::MSXDevice::getCurrentTime | ( | ) | const |
Definition at line 125 of file MSXDevice.cc.
References openmsx::MSXMotherBoard::getCurrentTime(), and getMotherBoard().
Referenced by openmsx::BeerIDE::BeerIDE(), openmsx::ColecoJoystickIO::ColecoJoystickIO(), openmsx::ColecoSuperGameModule::ColecoSuperGameModule(), openmsx::JVCMSXMIDI::JVCMSXMIDI(), openmsx::MSXAudio::MSXAudio(), openmsx::MSXFacMidiInterface::MSXFacMidiInterface(), openmsx::MSXFmPac::MSXFmPac(), openmsx::MSXHBI55::MSXHBI55(), openmsx::MSXHiResTimer::MSXHiResTimer(), openmsx::MSXMidi::MSXMidi(), openmsx::MSXMoonSound::MSXMoonSound(), openmsx::MSXMusicBase::MSXMusicBase(), openmsx::MSXMusicWX::MSXMusicWX(), openmsx::MSXOPL3Cartridge::MSXOPL3Cartridge(), openmsx::MSXPPI::MSXPPI(), openmsx::MSXPrinterPort::MSXPrinterPort(), openmsx::MSXRS232::MSXRS232(), openmsx::MSXRTC::MSXRTC(), openmsx::MSXSCCPlusCart::MSXSCCPlusCart(), openmsx::MSXTurboRPCM::MSXTurboRPCM(), openmsx::MSXYamahaSFG::MSXYamahaSFG(), openmsx::MusicModuleMIDI::MusicModuleMIDI(), openmsx::PhilipsFDC::PhilipsFDC(), openmsx::PioneerLDControl::PioneerLDControl(), openmsx::ROMHunterMk2::ROMHunterMk2(), openmsx::RomKonamiSCC::RomKonamiSCC(), openmsx::RomManbow2::RomManbow2(), openmsx::RomSynthesizer::RomSynthesizer(), openmsx::SC3000PPI::SC3000PPI(), openmsx::VDP::scheduleCmdSync(), openmsx::SensorKid::SensorKid(), openmsx::PioneerLDControl::serialize(), openmsx::Carnivore2::serialize(), openmsx::ReproCartridgeV2::serialize(), openmsx::MSXPPI::serialize(), openmsx::SC3000PPI::serialize(), openmsx::MSXAudio::serialize(), openmsx::MSXMoonSound::serialize(), openmsx::MSXPSG::serialize(), openmsx::SVIPSG::serialize(), openmsx::SVIPPI::serialize(), openmsx::V9990::serialize(), openmsx::SG1000JoystickIO::SG1000JoystickIO(), openmsx::SpectravideoFDC::SpectravideoFDC(), openmsx::SunriseIDE::SunriseIDE(), openmsx::SVIPPI::SVIPPI(), openmsx::SVIPrinterPort::SVIPrinterPort(), openmsx::TalentTDC600::TalentTDC600(), openmsx::TurboRFDC::TurboRFDC(), openmsx::VDP::VDP(), openmsx::VictorFDC::VictorFDC(), openmsx::YamahaFDC::YamahaFDC(), and openmsx::Carnivore2::~Carnivore2().
|
inline |
Get the configuration section for this device.
This was passed as a constructor argument.
Definition at line 236 of file MSXDevice.hh.
References openmsx::DeviceConfig::getXML().
Referenced by getDeviceInfo(), openmsx::VDP::getMSX1Palette(), openmsx::VDP::getVersionString(), and MSXDevice().
|
inline |
Definition at line 239 of file MSXDevice.hh.
Referenced by openmsx::MSXAudio::createPeriphery().
void openmsx::MSXDevice::getDeviceInfo | ( | TclObject & | result | ) | const |
Get device info.
Used by the 'machine_info device' command.
Definition at line 385 of file MSXDevice.cc.
References openmsx::TclObject::addDictKeyValue(), getDeviceConfig(), getExtraDeviceInfo(), and getName().
Referenced by openmsx::DeviceInfo::execute().
|
protectedvirtual |
Reimplemented in openmsx::MSXFDC, openmsx::MSXRom, openmsx::MSXKanji, openmsx::MSXKanji12, and openmsx::VDP.
Definition at line 391 of file MSXDevice.cc.
Referenced by getDeviceInfo().
|
inline |
Returns the hardwareconfig this device belongs to.
Definition at line 49 of file MSXDevice.hh.
References openmsx::DeviceConfig::getHardwareConfig().
Referenced by getMotherBoard(), and openmsx::PioneerLDControl::PioneerLDControl().
LedStatus & openmsx::MSXDevice::getLedStatus | ( | ) | const |
Definition at line 153 of file MSXDevice.cc.
References openmsx::MSXMotherBoard::getLedStatus(), and getMotherBoard().
Referenced by openmsx::MSXPPI::powerDown(), openmsx::MSXPSG::powerDown(), openmsx::MSXCielTurbo::writeIO(), and openmsx::MSXTurboRPause::writeIO().
MSXMotherBoard & openmsx::MSXDevice::getMotherBoard | ( | ) | const |
Get the mother board this device belongs to.
Definition at line 70 of file MSXDevice.cc.
References getHardwareConfig(), and openmsx::HardwareConfig::getMotherBoard().
Referenced by openmsx::ColecoJoystickIO::ColecoJoystickIO(), openmsx::SDLVideoSystem::createRasterizer(), openmsx::SDLVideoSystem::createV9990Rasterizer(), openmsx::NowindCommand::execute(), openmsx::PixelRenderer::frameEnd(), openmsx::V9990PixelRenderer::frameEnd(), getCliComm(), getCommandController(), getCPU(), getCPUInterface(), getCurrentTime(), getLedStatus(), getPluggingController(), getReactor(), getScheduler(), openmsx::SDLRasterizer::isActive(), openmsx::V9990SDLRasterizer::isActive(), openmsx::MSXFDC::MSXFDC(), openmsx::MSXPSG::MSXPSG(), openmsx::MSXS1985::MSXS1985(), openmsx::SVIPSG::powerDown(), openmsx::RomKonami::RomKonami(), openmsx::RomKonamiSCC::RomKonamiSCC(), openmsx::SC3000PPI::SC3000PPI(), openmsx::NowindInterface::serialize(), openmsx::SG1000JoystickIO::SG1000JoystickIO(), openmsx::SG1000Pause::SG1000Pause(), openmsx::SVIPPI::SVIPPI(), openmsx::SVIPSG::SVIPSG(), openmsx::V9990CmdEngine::V9990CmdEngine(), openmsx::V9990PixelRenderer::V9990PixelRenderer(), openmsx::MSXS1985::~MSXS1985(), and openmsx::SG1000Pause::~SG1000Pause().
|
virtual |
Returns a human-readable name for this device.
Default implementation is normally ok.
Reimplemented in openmsx::MSXMultiIODevice, and openmsx::MSXMultiMemDevice.
Definition at line 375 of file MSXDevice.cc.
References deviceName.
Referenced by openmsx::MSXMultiIODevice::addDevice(), openmsx::SDLVideoSystem::createRasterizer(), openmsx::SDLVideoSystem::createV9990Rasterizer(), openmsx::MachineExtensionInfo::execute(), openmsx::MSXMotherBoard::findDevice(), getDeviceInfo(), getNameList(), openmsx::MSXAudio::MSXAudio(), openmsx::MSXFDC::MSXFDC(), openmsx::MSXS1985::MSXS1985(), openmsx::RomAscii16_2::RomAscii16_2(), openmsx::RomAscii8_8::RomAscii8_8(), openmsx::RomGameMaster2::RomGameMaster2(), openmsx::RomHalnote::RomHalnote(), openmsx::RomNational::RomNational(), openmsx::RomPanasonic::RomPanasonic(), openmsx::RomRamFile::RomRamFile(), and openmsx::YamahaSKW01::YamahaSKW01().
|
virtual |
Returns list of name(s) of this device.
This is normally the same as getName() (but formatted as a Tcl list) except for multi-{mem,io}-devices.
Reimplemented in openmsx::MSXMultiIODevice, openmsx::MSXMultiMemDevice, and openmsx::DummyDevice.
Definition at line 380 of file MSXDevice.cc.
References openmsx::TclObject::addListElement(), and getName().
PluggingController & openmsx::MSXDevice::getPluggingController | ( | ) | const |
Definition at line 157 of file MSXDevice.cc.
References getMotherBoard(), and openmsx::MSXMotherBoard::getPluggingController().
Referenced by openmsx::YamahaSKW01::YamahaSKW01().
|
inlineprotected |
Definition at line 328 of file MSXDevice.hh.
Referenced by openmsx::Carnivore2::peekIO().
Reactor & openmsx::MSXDevice::getReactor | ( | ) | const |
Definition at line 145 of file MSXDevice.cc.
References getMotherBoard(), and openmsx::MSXMotherBoard::getReactor().
Referenced by openmsx::Video9000::Video9000(), and openmsx::Video9000::~Video9000().
Test that the memory in the interval [start, start + CacheLine::SIZE) is cacheable for reading.
If it is, a pointer to a buffer containing this interval must be returned. If not, a null pointer must be returned. Cacheable for reading means the data may be read directly from the buffer, thus bypassing the readMem() method, and thus also ignoring EmuTime. The default implementation always returns a null pointer. The start of the interval is CacheLine::SIZE aligned.
Reimplemented in openmsx::ChakkariCopy, openmsx::NowindInterface, openmsx::MegaSCSI, openmsx::PioneerLDControl, openmsx::ESE_RAM, openmsx::ESE_SCC, openmsx::KonamiUltimateCollection, openmsx::MegaFlashRomSCCPlus, openmsx::MegaFlashRomSCCPlusSD, openmsx::MSXMegaRam, openmsx::MSXPac, openmsx::ReproCartridgeV1, openmsx::ReproCartridgeV2, openmsx::RomAscii16_2, openmsx::RomAscii16X, openmsx::RomAscii8_8, openmsx::RomBlocks< BANK_SIZE_ >, openmsx::RomDRAM, openmsx::RomFSA1FM1, openmsx::RomFSA1FM2, openmsx::RomHalnote, openmsx::RomHolyQuran2, openmsx::ROMHunterMk2, openmsx::RomKonamiSCC, openmsx::RomManbow2, openmsx::RomMatraInk, openmsx::RomMitsubishiMLTS2, openmsx::RomMSXtra, openmsx::RomNational, openmsx::RomPanasonic, openmsx::RomPlayBall, openmsx::RomRamFile, openmsx::MSXModem, openmsx::MSXFmPac, openmsx::MSXMultiMemDevice, openmsx::CanonFDC, openmsx::MSXFDC, openmsx::NationalFDC, openmsx::PhilipsFDC, openmsx::SanyoFDC, openmsx::SpectravideoFDC, openmsx::TalentTDC600, openmsx::ToshibaFDC, openmsx::TurboRFDC, openmsx::VictorFDC, openmsx::YamahaFDC, openmsx::BeerIDE, openmsx::GoudaSCSI, openmsx::SunriseIDE, openmsx::CanonWordProcessor, openmsx::ColecoSuperGameModule, openmsx::FraelSwitchableROM, openmsx::MSXMemoryMapperBase, openmsx::MSXMirrorDevice, openmsx::MSXRam, openmsx::MusicalMemoryMapper, openmsx::RomColecoMegaCart, openmsx::MSXBunsetsu, openmsx::MSXToshibaTcx200x, openmsx::MSXRS232, openmsx::MSXAudio, openmsx::MSXMusicBase, openmsx::MSXMusicWX, openmsx::MSXSCCPlusCart, openmsx::MSXYamahaSFG, and openmsx::YamahaSKW01.
Definition at line 425 of file MSXDevice.cc.
Referenced by peekMem().
const MSXDevice::Devices & openmsx::MSXDevice::getReferences | ( | ) | const |
Get the device references that are specified for this device.
Definition at line 119 of file MSXDevice.cc.
Referenced by openmsx::PioneerLDControl::init(), openmsx::MSXMatsushita::init(), and openmsx::Video9000::init().
Scheduler & openmsx::MSXDevice::getScheduler | ( | ) | const |
Definition at line 137 of file MSXDevice.cc.
References getMotherBoard(), and openmsx::MSXMotherBoard::getScheduler().
void openmsx::MSXDevice::getVisibleMemRegion | ( | unsigned & | base, |
unsigned & | size | ||
) | const |
Returns the range where this device is visible in memory.
This is the union of the "mem" tags inside the device tag in hardwareconfig.xml (though practically always there is only one "mem" tag). Information on possible holes in this range (when there are multiple "mem" tags) is not returned by this method.
Definition at line 301 of file MSXDevice.cc.
References max_value(), and min_value().
Test that the memory in the interval [start, start + CacheLine::SIZE) is cacheable for writing.
If it is, a pointer to a buffer containing this interval must be returned. If not, a null pointer must be returned. Cacheable for writing means the data may be written directly to the buffer, thus bypassing the writeMem() method, and thus also ignoring EmuTime. The default implementation always returns a null pointer. The start of the interval is CacheLine::SIZE aligned.
Reimplemented in openmsx::ChakkariCopy, openmsx::CanonFDC, openmsx::NationalFDC, openmsx::NowindInterface, openmsx::PhilipsFDC, openmsx::SanyoFDC, openmsx::SpectravideoFDC, openmsx::TalentTDC600, openmsx::ToshibaFDC, openmsx::TurboRFDC, openmsx::VictorFDC, openmsx::YamahaFDC, openmsx::MegaSCSI, openmsx::PioneerLDControl, openmsx::ESE_RAM, openmsx::ESE_SCC, openmsx::KonamiUltimateCollection, openmsx::MegaFlashRomSCCPlus, openmsx::MegaFlashRomSCCPlusSD, openmsx::MSXMegaRam, openmsx::MSXPac, openmsx::MSXRom, openmsx::ReproCartridgeV1, openmsx::ReproCartridgeV2, openmsx::RomAscii16_2, openmsx::RomAscii16kB, openmsx::RomAscii16X, openmsx::RomAscii8_8, openmsx::RomAscii8kB, openmsx::RomCrossBlaim, openmsx::RomDooly, openmsx::RomFSA1FM1, openmsx::RomFSA1FM2, openmsx::RomGameMaster2, openmsx::RomGeneric16kB, openmsx::RomGeneric8kB, openmsx::RomHalnote, openmsx::RomHarryFox, openmsx::RomHolyQuran, openmsx::RomHolyQuran2, openmsx::ROMHunterMk2, openmsx::RomKonami, openmsx::RomKonamiSCC, openmsx::RomMajutsushi, openmsx::RomManbow2, openmsx::RomMatraCompilation, openmsx::RomMatraInk, openmsx::RomMitsubishiMLTS2, openmsx::RomMSXDOS2, openmsx::RomMSXtra, openmsx::RomMSXWrite, openmsx::RomNational, openmsx::RomNeo16, openmsx::RomNeo8, openmsx::RomNettouYakyuu, openmsx::RomPanasonic, openmsx::RomPlayBall, openmsx::RomRamFile, openmsx::RomRetroHard31in1, openmsx::RomRType, openmsx::RomSuperSwangi, openmsx::RomSynthesizer, openmsx::RomZemina126in1, openmsx::RomZemina25in1, openmsx::RomZemina80in1, openmsx::RomZemina90in1, openmsx::MSXModem, openmsx::MSXFmPac, openmsx::MSXMultiMemDevice, openmsx::CanonWordProcessor, openmsx::ColecoSuperGameModule, openmsx::MSXMemoryMapperBase, openmsx::MSXMirrorDevice, openmsx::MSXRam, openmsx::MusicalMemoryMapper, openmsx::PanasonicRam, openmsx::MSXBunsetsu, openmsx::MSXToshibaTcx200x, openmsx::MSXRS232, openmsx::MSXAudio, openmsx::MSXMusicWX, openmsx::MSXSCCPlusCart, openmsx::MSXYamahaSFG, and openmsx::YamahaSKW01.
Definition at line 459 of file MSXDevice.cc.
|
virtual |
Global reads.
Similar to globalWrite() but then for reads. 'Carnivore2' is an example of a device that monitors the MSX bus for reads in any slot.
Reimplemented in openmsx::Carnivore2.
Definition at line 454 of file MSXDevice.cc.
References UNREACHABLE.
Global writes.
Some devices violate the MSX standard by ignoring the SLOT-SELECT signal; they react to writes to a certain address in any slot. Luckily the only known example so far is 'Super Lode Runner'. This method is triggered for such 'global' writes. You need to register each address for which you want this method to be triggered.
Reimplemented in openmsx::RomSuperLodeRunner.
Definition at line 448 of file MSXDevice.cc.
References UNREACHABLE.
|
protectedvirtual |
Reimplemented in openmsx::PioneerLDControl, openmsx::MSXMatsushita, and openmsx::Video9000.
Definition at line 44 of file MSXDevice.cc.
Referenced by openmsx::PioneerLDControl::init(), openmsx::MSXMatsushita::init(), and openmsx::Video9000::init().
|
inline |
Definition at line 215 of file MSXDevice.hh.
References invalidateDeviceRCache().
Referenced by invalidateDeviceRCache(), openmsx::RomColecoMegaCart::readMem(), openmsx::FraelSwitchableROM::reset(), openmsx::MegaFlashRomSCCPlus::reset(), openmsx::ReproCartridgeV1::reset(), openmsx::ReproCartridgeV2::reset(), openmsx::RomAscii16X::reset(), openmsx::RomColecoMegaCart::reset(), openmsx::ROMHunterMk2::reset(), openmsx::RomNational::reset(), openmsx::RomPanasonic::reset(), openmsx::RomPlain::RomPlain(), openmsx::RomPlayBall::RomPlayBall(), openmsx::FraelSwitchableROM::writeIO(), openmsx::ReproCartridgeV1::writeIO(), openmsx::ReproCartridgeV2::writeIO(), openmsx::NowindInterface::writeMem(), openmsx::CanonWordProcessor::writeMem(), openmsx::KonamiUltimateCollection::writeMem(), openmsx::MegaFlashRomSCCPlus::writeMem(), openmsx::ReproCartridgeV1::writeMem(), openmsx::ReproCartridgeV2::writeMem(), openmsx::RomAscii16X::writeMem(), openmsx::RomAscii8_8::writeMem(), openmsx::RomFSA1FM1::writeMem(), openmsx::RomHalnote::writeMem(), openmsx::ROMHunterMk2::writeMem(), openmsx::RomKonamiSCC::writeMem(), openmsx::RomManbow2::writeMem(), openmsx::RomNational::writeMem(), openmsx::MSXModem::writeMem(), openmsx::MSXFmPac::writeMem(), and openmsx::MSXMusicWX::writeMem().
void openmsx::MSXDevice::invalidateDeviceRCache | ( | unsigned | start, |
unsigned | size | ||
) |
Definition at line 497 of file MSXDevice.cc.
References getCPUInterface(), and openmsx::MSXCPUInterface::invalidateRCache().
|
inline |
Calls MSXCPUInterface::invalidateXXCache() for the specific (part of) the slot that this device is located in.
Definition at line 214 of file MSXDevice.hh.
References invalidateDeviceRWCache().
Referenced by invalidateDeviceRWCache(), openmsx::MSXMegaRam::readIO(), openmsx::ColecoSuperGameModule::reset(), openmsx::KonamiUltimateCollection::reset(), openmsx::MegaFlashRomSCCPlusSD::reset(), openmsx::Carnivore2::writeIO(), openmsx::ColecoSuperGameModule::writeIO(), openmsx::MSXMegaRam::writeIO(), openmsx::MSXMemoryMapper::writeIO(), openmsx::MusicalMemoryMapper::writeIO(), openmsx::PanasonicRam::writeIO(), openmsx::MegaFlashRomSCCPlusSD::writeMem(), openmsx::MusicalMemoryMapper::writeMem(), openmsx::RomAscii16_2::writeMem(), openmsx::RomKonamiSCC::writeMem(), and openmsx::MSXToshibaTcx200x::writeMem().
void openmsx::MSXDevice::invalidateDeviceRWCache | ( | unsigned | start, |
unsigned | size | ||
) |
Definition at line 493 of file MSXDevice.cc.
References getCPUInterface(), and openmsx::MSXCPUInterface::invalidateRWCache().
|
inline |
Definition at line 216 of file MSXDevice.hh.
References invalidateDeviceWCache().
Referenced by invalidateDeviceWCache(), openmsx::RomAscii8_8::writeMem(), openmsx::RomGameMaster2::writeMem(), and openmsx::RomHalnote::writeMem().
void openmsx::MSXDevice::invalidateDeviceWCache | ( | unsigned | start, |
unsigned | size | ||
) |
Definition at line 501 of file MSXDevice.cc.
References getCPUInterface(), and openmsx::MSXCPUInterface::invalidateWCache().
Read a byte from a given IO port.
Reading via this method has no side effects (doesn't change the device status). If safe reading is not possible this method returns 0xFF. This method is not used by the emulation. It can however be used by a debugger. The default implementation just returns 0xFF.
Reimplemented in openmsx::MSXPrinterPort, openmsx::SVIPrinterPort, openmsx::ChakkariCopy, openmsx::MSXMultiIODevice, openmsx::VDPIODelay, openmsx::AVTFDC, openmsx::MicrosolFDC, openmsx::SVIFDC, openmsx::BeerIDE, openmsx::GoudaSCSI, openmsx::ColecoJoystickIO, openmsx::SG1000JoystickIO, openmsx::Carnivore2, openmsx::ColecoSuperGameModule, openmsx::MSXHBI55, openmsx::MSXMapperIO, openmsx::MSXMegaRam, openmsx::MSXMemoryMapperBase, openmsx::MusicalMemoryMapper, openmsx::RomArc, openmsx::RomKonamiKeyboardMaster, openmsx::RomManbow2, openmsx::MSXCielTurbo, openmsx::MSXDeviceSwitch, openmsx::MSXE6Timer, openmsx::MSXHiResTimer, openmsx::MSXKanji, openmsx::MSXMatsushita, openmsx::MSXPPI, openmsx::MSXResetStatusRegister, openmsx::MSXRTC, openmsx::MSXS1990, openmsx::MSXTurboRPause, openmsx::PasswordCart, openmsx::SC3000PPI, openmsx::JVCMSXMIDI, openmsx::MSXFacMidiInterface, openmsx::MSXMidi, openmsx::MSXRS232, openmsx::MusicModuleMIDI, openmsx::MSXAudio, openmsx::MSXMoonSound, openmsx::MSXOPL3Cartridge, openmsx::MSXPSG, openmsx::MSXTurboRPCM, openmsx::SVIPSG, openmsx::SVIPPI, openmsx::V9990, and openmsx::VDP.
Definition at line 413 of file MSXDevice.cc.
Referenced by openmsx::VDPIODelay::peekIO().
Read a byte from a given memory location.
Reading memory via this method has no side effects (doesn't change the device status). If save reading is not possible this method returns 0xFF. This method is not used by the emulation. It can however be used by a debugger. The default implementation uses the cache mechanism (getReadCacheLine() method). If a certain region is not cacheable you cannot read it by default, Override this method if you want to improve this behaviour.
Reimplemented in openmsx::ChakkariCopy, openmsx::MSXMultiMemDevice, openmsx::CanonFDC, openmsx::MSXFDC, openmsx::NationalFDC, openmsx::NowindInterface, openmsx::PhilipsFDC, openmsx::SanyoFDC, openmsx::SpectravideoFDC, openmsx::TalentTDC600, openmsx::ToshibaFDC, openmsx::TurboRFDC, openmsx::VictorFDC, openmsx::YamahaFDC, openmsx::MegaSCSI, openmsx::PioneerLDControl, openmsx::CanonWordProcessor, openmsx::Carnivore2, openmsx::ColecoSuperGameModule, openmsx::ESE_SCC, openmsx::KonamiUltimateCollection, openmsx::MegaFlashRomSCCPlus, openmsx::MegaFlashRomSCCPlusSD, openmsx::MSXMemoryMapperBase, openmsx::MSXMirrorDevice, openmsx::MSXRam, openmsx::MusicalMemoryMapper, openmsx::ReproCartridgeV1, openmsx::ReproCartridgeV2, openmsx::RomAscii16X, openmsx::RomBlocks< BANK_SIZE_ >, openmsx::RomDooly, openmsx::RomFSA1FM1, openmsx::RomFSA1FM2, openmsx::RomHolyQuran2, openmsx::ROMHunterMk2, openmsx::RomKonamiSCC, openmsx::RomManbow2, openmsx::RomMatraInk, openmsx::RomMitsubishiMLTS2, openmsx::RomNational, openmsx::RomPanasonic, openmsx::RomPlayBall, openmsx::RomRamFile, openmsx::MSXToshibaTcx200x, openmsx::MSXVictorHC9xSystemControl, openmsx::MSXModem, openmsx::MSXAudio, openmsx::MSXMusicBase, openmsx::MSXMusicWX, openmsx::MSXSCCPlusCart, openmsx::MSXYamahaSFG, and openmsx::YamahaSKW01.
Definition at line 436 of file MSXDevice.cc.
References getReadCacheLine(), openmsx::CacheLine::HIGH, and openmsx::CacheLine::LOW.
Referenced by openmsx::MSXMultiMemDevice::peekMem().
|
virtual |
This method is called when MSX is powered down.
The default implementation does nothing, this is usually ok. Typically devices that need to turn off LEDs need to reimplement this method.
time | The moment in time the power down occurs. |
Reimplemented in openmsx::MSXMultiDevice, openmsx::MSXFDC, openmsx::MSXPPI, openmsx::MSXTurboRPause, openmsx::MSXPSG, and openmsx::SVIPSG.
Definition at line 365 of file MSXDevice.cc.
|
virtual |
This method is called when MSX is powered up.
The default implementation calls reset(), this is usually ok.
time | The moment in time the power up occurs. |
Reimplemented in openmsx::MSXMultiDevice, openmsx::SunriseIDE, openmsx::Carnivore2, openmsx::ESE_SCC, openmsx::KonamiUltimateCollection, openmsx::MegaFlashRomSCCPlus, openmsx::MegaFlashRomSCCPlusSD, openmsx::MSXMegaRam, openmsx::MSXMemoryMapperBase, openmsx::MSXRam, openmsx::ReproCartridgeV1, openmsx::ReproCartridgeV2, openmsx::RomKonamiSCC, openmsx::RomManbow2, openmsx::MSXRS232, openmsx::MSXAudio, openmsx::MSXMoonSound, openmsx::MSXSCCPlusCart, openmsx::V9990, and openmsx::VDP.
Definition at line 370 of file MSXDevice.cc.
References reset().
Referenced by openmsx::BeerIDE::BeerIDE().
Read a byte from an IO port at a certain time from this device.
The default implementation returns 255.
Reimplemented in openmsx::MSXPrinterPort, openmsx::SVIPrinterPort, openmsx::ChakkariCopy, openmsx::MSXMultiIODevice, openmsx::VDPIODelay, openmsx::AVTFDC, openmsx::MicrosolFDC, openmsx::SVIFDC, openmsx::BeerIDE, openmsx::GoudaSCSI, openmsx::ColecoJoystickIO, openmsx::SG1000JoystickIO, openmsx::Carnivore2, openmsx::ColecoSuperGameModule, openmsx::MSXHBI55, openmsx::MSXMapperIO, openmsx::MSXMegaRam, openmsx::MSXMemoryMapperBase, openmsx::MusicalMemoryMapper, openmsx::RomAlAlamiah30in1, openmsx::RomArc, openmsx::RomKonamiKeyboardMaster, openmsx::RomManbow2, openmsx::MSXCielTurbo, openmsx::MSXDeviceSwitch, openmsx::MSXE6Timer, openmsx::MSXHiResTimer, openmsx::MSXKanji, openmsx::MSXMatsushita, openmsx::MSXPPI, openmsx::MSXResetStatusRegister, openmsx::MSXRTC, openmsx::MSXS1990, openmsx::MSXTurboRPause, openmsx::PasswordCart, openmsx::SC3000PPI, openmsx::SensorKid, openmsx::JVCMSXMIDI, openmsx::MSXFacMidiInterface, openmsx::MSXMidi, openmsx::MSXRS232, openmsx::MusicModuleMIDI, openmsx::MSXAudio, openmsx::MSXMoonSound, openmsx::MSXOPL3Cartridge, openmsx::MSXPSG, openmsx::MSXTurboRPCM, openmsx::SVIPSG, openmsx::SVIPPI, openmsx::ADVram, openmsx::V9990, and openmsx::VDP.
Definition at line 402 of file MSXDevice.cc.
Referenced by openmsx::VDPIODelay::readIO().
|
virtual |
Gets IRQ vector used in IM2.
This method only exists to support YamahaSfg05. There is no way for several devices to coordinate which vector is actually send to the CPU. But this IM is anyway not really supported in the MSX standard. Default implementation returns 0xFF.
Reimplemented in openmsx::MSXYamahaSFG.
Definition at line 360 of file MSXDevice.cc.
Read a byte from a location at a certain time from this device.
The default implementation returns 255.
Reimplemented in openmsx::ChakkariCopy, openmsx::MSXMultiMemDevice, openmsx::CanonFDC, openmsx::MSXFDC, openmsx::NationalFDC, openmsx::NowindInterface, openmsx::PhilipsFDC, openmsx::SanyoFDC, openmsx::SpectravideoFDC, openmsx::TalentTDC600, openmsx::ToshibaFDC, openmsx::TurboRFDC, openmsx::VictorFDC, openmsx::YamahaFDC, openmsx::BeerIDE, openmsx::GoudaSCSI, openmsx::MegaSCSI, openmsx::SunriseIDE, openmsx::PioneerLDControl, openmsx::CanonWordProcessor, openmsx::Carnivore2, openmsx::ColecoSuperGameModule, openmsx::ESE_RAM, openmsx::ESE_SCC, openmsx::FraelSwitchableROM, openmsx::KonamiUltimateCollection, openmsx::MegaFlashRomSCCPlus, openmsx::MegaFlashRomSCCPlusSD, openmsx::MSXMegaRam, openmsx::MSXMemoryMapperBase, openmsx::MSXMirrorDevice, openmsx::MSXPac, openmsx::MSXRam, openmsx::MusicalMemoryMapper, openmsx::ReproCartridgeV1, openmsx::ReproCartridgeV2, openmsx::RomAscii16_2, openmsx::RomAscii16X, openmsx::RomAscii8_8, openmsx::RomBlocks< BANK_SIZE_ >, openmsx::RomColecoMegaCart, openmsx::RomDooly, openmsx::RomDRAM, openmsx::RomFSA1FM1, openmsx::RomFSA1FM2, openmsx::RomHalnote, openmsx::RomHolyQuran2, openmsx::ROMHunterMk2, openmsx::RomKonamiSCC, openmsx::RomManbow2, openmsx::RomMatraInk, openmsx::RomMitsubishiMLTS2, openmsx::RomMSXtra, openmsx::RomNational, openmsx::RomPanasonic, openmsx::RomPlayBall, openmsx::RomRamFile, openmsx::MSXBunsetsu, openmsx::MSXToshibaTcx200x, openmsx::MSXVictorHC9xSystemControl, openmsx::MSXModem, openmsx::MSXRS232, openmsx::MSXAudio, openmsx::MSXFmPac, openmsx::MSXMusicBase, openmsx::MSXMusicWX, openmsx::MSXSCCPlusCart, openmsx::MSXYamahaSFG, openmsx::ADVram, and openmsx::YamahaSKW01.
Definition at line 419 of file MSXDevice.cc.
Referenced by openmsx::MSXMultiMemDevice::readMem().
|
virtual |
This method is called on reset.
Default implementation does nothing.
Reimplemented in openmsx::ChakkariCopy, openmsx::MSXMultiDevice, openmsx::DebugDevice, openmsx::DummyDevice, openmsx::CanonFDC, openmsx::NowindInterface, openmsx::PhilipsFDC, openmsx::SpectravideoFDC, openmsx::TalentTDC600, openmsx::TurboRFDC, openmsx::VictorFDC, openmsx::WD2793BasedFDC, openmsx::YamahaFDC, openmsx::BeerIDE, openmsx::GoudaSCSI, openmsx::MegaSCSI, openmsx::SunriseIDE, openmsx::ColecoJoystickIO, openmsx::PioneerLDControl, openmsx::CanonWordProcessor, openmsx::Carnivore2, openmsx::ColecoSuperGameModule, openmsx::ESE_RAM, openmsx::ESE_SCC, openmsx::FraelSwitchableROM, openmsx::KonamiUltimateCollection, openmsx::MegaFlashRomSCCPlus, openmsx::MegaFlashRomSCCPlusSD, openmsx::MSXHBI55, openmsx::MSXMegaRam, openmsx::MSXMemoryMapperBase, openmsx::MSXPac, openmsx::MusicalMemoryMapper, openmsx::ReproCartridgeV1, openmsx::ReproCartridgeV2, openmsx::RomAlAlamiah30in1, openmsx::RomArc, openmsx::RomAscii16_2, openmsx::RomAscii16kB, openmsx::RomAscii16X, openmsx::RomAscii8_8, openmsx::RomAscii8kB, openmsx::RomColecoMegaCart, openmsx::RomCrossBlaim, openmsx::RomDooly, openmsx::RomFSA1FM1, openmsx::RomFSA1FM2, openmsx::RomGameMaster2, openmsx::RomGeneric16kB, openmsx::RomGeneric8kB, openmsx::RomHalnote, openmsx::RomHarryFox, openmsx::RomHolyQuran, openmsx::RomHolyQuran2, openmsx::ROMHunterMk2, openmsx::RomKonami, openmsx::RomKonamiKeyboardMaster, openmsx::RomKonamiSCC, openmsx::RomMajutsushi, openmsx::RomManbow2, openmsx::RomMatraCompilation, openmsx::RomMatraInk, openmsx::RomMitsubishiMLTS2, openmsx::RomMSXDOS2, openmsx::RomMSXWrite, openmsx::RomMultiRom, openmsx::RomNational, openmsx::RomNeo16, openmsx::RomNeo8, openmsx::RomNettouYakyuu, openmsx::RomPadial16kB, openmsx::RomPadial8kB, openmsx::RomPanasonic, openmsx::RomPlayBall, openmsx::RomRamFile, openmsx::RomRetroHard31in1, openmsx::RomRType, openmsx::RomSuperLodeRunner, openmsx::RomSuperSwangi, openmsx::RomSynthesizer, openmsx::RomZemina126in1, openmsx::RomZemina25in1, openmsx::RomZemina80in1, openmsx::RomZemina90in1, openmsx::MSXBunsetsu, openmsx::MSXCielTurbo, openmsx::MSXDeviceSwitch, openmsx::MSXE6Timer, openmsx::MSXHiResTimer, openmsx::MSXKanji, openmsx::MSXKanji12, openmsx::MSXMatsushita, openmsx::MSXPPI, openmsx::MSXPrinterPort, openmsx::MSXResetStatusRegister, openmsx::MSXRTC, openmsx::MSXS1985, openmsx::MSXS1990, openmsx::MSXToshibaTcx200x, openmsx::MSXTurboRPause, openmsx::PasswordCart, openmsx::SC3000PPI, openmsx::SensorKid, openmsx::JVCMSXMIDI, openmsx::MSXFacMidiInterface, openmsx::MSXMidi, openmsx::MSXModem, openmsx::MSXRS232, openmsx::MusicModuleMIDI, openmsx::MSXAudio, openmsx::MSXFmPac, openmsx::MSXMoonSound, openmsx::MSXMusicBase, openmsx::MSXMusicWX, openmsx::MSXOPL3Cartridge, openmsx::MSXPSG, openmsx::MSXSCCPlusCart, openmsx::MSXTurboRPCM, openmsx::MSXYamahaSFG, openmsx::SNPSG, openmsx::SVIPSG, openmsx::SVIPPI, openmsx::SVIPrinterPort, openmsx::ADVram, openmsx::V9990, openmsx::Video9000, openmsx::VDP, and openmsx::YamahaSKW01.
Definition at line 355 of file MSXDevice.cc.
Referenced by openmsx::MSXMapperIO::MSXMapperIO(), and powerUp().
void openmsx::MSXDevice::serialize | ( | Archive & | ar, |
unsigned | version | ||
) |
Definition at line 527 of file MSXDevice.cc.
References deviceName.
void openmsx::MSXDevice::testRemove | ( | std::span< const std::unique_ptr< MSXDevice > > | removed | ) | const |
Checks whether this device can be removed (no other device has a reference to it).
Throws an exception if it can't be removed.
Definition at line 75 of file MSXDevice.cc.
References contains(), and strAppend().
Write a byte to a given IO port at a certain time to this device.
The default implementation ignores the write (does nothing)
Reimplemented in openmsx::MSXPrinterPort, openmsx::SVIPrinterPort, openmsx::ChakkariCopy, openmsx::MSXMultiIODevice, openmsx::VDPIODelay, openmsx::DebugDevice, openmsx::AVTFDC, openmsx::MicrosolFDC, openmsx::SVIFDC, openmsx::BeerIDE, openmsx::GoudaSCSI, openmsx::ColecoJoystickIO, openmsx::Carnivore2, openmsx::ColecoSuperGameModule, openmsx::FraelSwitchableROM, openmsx::MegaFlashRomSCCPlus, openmsx::MegaFlashRomSCCPlusSD, openmsx::MSXHBI55, openmsx::MSXMapperIO, openmsx::MSXMegaRam, openmsx::MSXMemoryMapper, openmsx::MusicalMemoryMapper, openmsx::PanasonicRam, openmsx::ReproCartridgeV1, openmsx::ReproCartridgeV2, openmsx::RomAlAlamiah30in1, openmsx::RomArc, openmsx::RomKonamiKeyboardMaster, openmsx::RomManbow2, openmsx::RomRetroHard31in1, openmsx::RomZemina90in1, openmsx::MSXCielTurbo, openmsx::MSXDeviceSwitch, openmsx::MSXE6Timer, openmsx::MSXHiResTimer, openmsx::MSXKanji, openmsx::MSXMatsushita, openmsx::MSXPPI, openmsx::MSXResetStatusRegister, openmsx::MSXRTC, openmsx::MSXS1990, openmsx::MSXTurboRPause, openmsx::PasswordCart, openmsx::SC3000PPI, openmsx::SensorKid, openmsx::JVCMSXMIDI, openmsx::MSXFacMidiInterface, openmsx::MSXMidi, openmsx::MSXRS232, openmsx::MusicModuleMIDI, openmsx::MSXAudio, openmsx::MSXFmPac, openmsx::MSXMoonSound, openmsx::MSXMusicBase, openmsx::MSXOPL3Cartridge, openmsx::MSXPSG, openmsx::MSXTurboRPCM, openmsx::SNPSG, openmsx::SVIPSG, openmsx::SVIPPI, openmsx::ADVram, openmsx::V9990, openmsx::Video9000, openmsx::VDP, and openmsx::MSXMemoryMapperBase.
Definition at line 408 of file MSXDevice.cc.
Referenced by openmsx::VDPIODelay::writeIO().
Write a given byte to a given location at a certain time to this device.
The default implementation ignores the write (does nothing).
Reimplemented in openmsx::ChakkariCopy, openmsx::MSXMultiMemDevice, openmsx::CanonFDC, openmsx::NationalFDC, openmsx::NowindInterface, openmsx::PhilipsFDC, openmsx::SanyoFDC, openmsx::SpectravideoFDC, openmsx::TalentTDC600, openmsx::ToshibaFDC, openmsx::TurboRFDC, openmsx::VictorFDC, openmsx::YamahaFDC, openmsx::MegaSCSI, openmsx::SunriseIDE, openmsx::PioneerLDControl, openmsx::CanonWordProcessor, openmsx::Carnivore2, openmsx::ColecoSuperGameModule, openmsx::ESE_RAM, openmsx::ESE_SCC, openmsx::KonamiUltimateCollection, openmsx::MegaFlashRomSCCPlus, openmsx::MegaFlashRomSCCPlusSD, openmsx::MSXMegaRam, openmsx::MSXMemoryMapperBase, openmsx::MSXMirrorDevice, openmsx::MSXPac, openmsx::MSXRam, openmsx::MSXRom, openmsx::MusicalMemoryMapper, openmsx::PanasonicRam, openmsx::ReproCartridgeV1, openmsx::ReproCartridgeV2, openmsx::RomAscii16_2, openmsx::RomAscii16kB, openmsx::RomAscii16X, openmsx::RomAscii8_8, openmsx::RomAscii8kB, openmsx::RomCrossBlaim, openmsx::RomDooly, openmsx::RomFSA1FM1, openmsx::RomFSA1FM2, openmsx::RomGameMaster2, openmsx::RomGeneric16kB, openmsx::RomGeneric8kB, openmsx::RomHalnote, openmsx::RomHarryFox, openmsx::RomHolyQuran, openmsx::RomHolyQuran2, openmsx::ROMHunterMk2, openmsx::RomKonami, openmsx::RomKonamiSCC, openmsx::RomMajutsushi, openmsx::RomManbow2, openmsx::RomMatraCompilation, openmsx::RomMatraInk, openmsx::RomMitsubishiMLTS2, openmsx::RomMSXDOS2, openmsx::RomMSXtra, openmsx::RomMSXWrite, openmsx::RomNational, openmsx::RomNeo16, openmsx::RomNeo8, openmsx::RomNettouYakyuu, openmsx::RomPanasonic, openmsx::RomPlayBall, openmsx::RomRamFile, openmsx::RomRType, openmsx::RomSuperSwangi, openmsx::RomSynthesizer, openmsx::RomZemina126in1, openmsx::RomZemina25in1, openmsx::RomZemina80in1, openmsx::MSXBunsetsu, openmsx::MSXToshibaTcx200x, openmsx::MSXVictorHC9xSystemControl, openmsx::MSXModem, openmsx::MSXRS232, openmsx::MSXAudio, openmsx::MSXFmPac, openmsx::MSXMusicWX, openmsx::MSXSCCPlusCart, openmsx::MSXYamahaSFG, openmsx::ADVram, and openmsx::YamahaSKW01.
Definition at line 430 of file MSXDevice.cc.
Referenced by openmsx::MSXMultiMemDevice::writeMem().
|
friend |
Constructing a MSXDevice is a 2-step process, after the constructor is called this init() method must be called.
The reason is exception safety (init() might throw and we use the destructor to clean up some stuff, this is more difficult when everything is done in the constructor). This is also a non-public method. This means you can only construct MSXDevices via DeviceFactory. In rare cases you need to override this method, for example when you need to access the referenced devices already during construction of this device (e.g. ADVram)
Definition at line 281 of file MSXDevice.hh.
|
protected |
Definition at line 326 of file MSXDevice.hh.
Referenced by getName(), openmsx::MSXMultiIODevice::getName(), openmsx::MSXMultiMemDevice::getName(), and serialize().
|
inlinestatic |
Definition at line 306 of file MSXDevice.hh.
Referenced by openmsx::AmdFlash::getReadCacheLine(), openmsx::NowindInterface::getReadCacheLine(), openmsx::MegaSCSI::getReadCacheLine(), openmsx::PioneerLDControl::getReadCacheLine(), openmsx::ESE_RAM::getReadCacheLine(), openmsx::KonamiUltimateCollection::getReadCacheLine(), openmsx::MegaFlashRomSCCPlus::getReadCacheLine(), openmsx::MegaFlashRomSCCPlusSD::getReadCacheLine(), openmsx::MSXMegaRam::getReadCacheLine(), openmsx::MSXPac::getReadCacheLine(), openmsx::ReproCartridgeV1::getReadCacheLine(), openmsx::ReproCartridgeV2::getReadCacheLine(), openmsx::RomFSA1FM1::getReadCacheLine(), openmsx::RomFSA1FM2::getReadCacheLine(), openmsx::RomHolyQuran2::getReadCacheLine(), openmsx::ROMHunterMk2::getReadCacheLine(), openmsx::RomManbow2::getReadCacheLine(), openmsx::RomMSXtra::getReadCacheLine(), openmsx::RomRamFile::getReadCacheLine(), openmsx::MSXModem::getReadCacheLine(), openmsx::MSXFmPac::getReadCacheLine(), openmsx::Y8950Periphery::getReadCacheLine(), openmsx::NationalFDC::getReadCacheLine(), openmsx::PhilipsFDC::getReadCacheLine(), openmsx::SanyoFDC::getReadCacheLine(), openmsx::SpectravideoFDC::getReadCacheLine(), openmsx::TalentTDC600::getReadCacheLine(), openmsx::ToshibaFDC::getReadCacheLine(), openmsx::TurboRFDC::getReadCacheLine(), openmsx::VictorFDC::getReadCacheLine(), openmsx::YamahaFDC::getReadCacheLine(), openmsx::BeerIDE::getReadCacheLine(), openmsx::SunriseIDE::getReadCacheLine(), openmsx::ColecoSuperGameModule::getReadCacheLine(), openmsx::MSXToshibaTcx200x::getReadCacheLine(), openmsx::MSXRS232::getReadCacheLine(), openmsx::MSXMusicWX::getReadCacheLine(), openmsx::MSXSCCPlusCart::getReadCacheLine(), and openmsx::YamahaSKW01::getReadCacheLine().
|
inlinestatic |
Definition at line 307 of file MSXDevice.hh.
Referenced by openmsx::CanonFDC::getWriteCacheLine(), openmsx::NationalFDC::getWriteCacheLine(), openmsx::NowindInterface::getWriteCacheLine(), openmsx::PhilipsFDC::getWriteCacheLine(), openmsx::SanyoFDC::getWriteCacheLine(), openmsx::SpectravideoFDC::getWriteCacheLine(), openmsx::TalentTDC600::getWriteCacheLine(), openmsx::ToshibaFDC::getWriteCacheLine(), openmsx::TurboRFDC::getWriteCacheLine(), openmsx::VictorFDC::getWriteCacheLine(), openmsx::YamahaFDC::getWriteCacheLine(), openmsx::MegaSCSI::getWriteCacheLine(), openmsx::PioneerLDControl::getWriteCacheLine(), openmsx::ESE_RAM::getWriteCacheLine(), openmsx::KonamiUltimateCollection::getWriteCacheLine(), openmsx::MegaFlashRomSCCPlusSD::getWriteCacheLine(), openmsx::MSXMegaRam::getWriteCacheLine(), openmsx::MSXPac::getWriteCacheLine(), openmsx::MSXRom::getWriteCacheLine(), openmsx::ReproCartridgeV1::getWriteCacheLine(), openmsx::ReproCartridgeV2::getWriteCacheLine(), openmsx::RomAscii16kB::getWriteCacheLine(), openmsx::RomAscii8_8::getWriteCacheLine(), openmsx::RomAscii8kB::getWriteCacheLine(), openmsx::RomDooly::getWriteCacheLine(), openmsx::RomFSA1FM1::getWriteCacheLine(), openmsx::RomFSA1FM2::getWriteCacheLine(), openmsx::RomGameMaster2::getWriteCacheLine(), openmsx::RomGeneric16kB::getWriteCacheLine(), openmsx::RomGeneric8kB::getWriteCacheLine(), openmsx::RomHalnote::getWriteCacheLine(), openmsx::RomHarryFox::getWriteCacheLine(), openmsx::RomHolyQuran::getWriteCacheLine(), openmsx::RomHolyQuran2::getWriteCacheLine(), openmsx::RomKonami::getWriteCacheLine(), openmsx::RomKonamiSCC::getWriteCacheLine(), openmsx::RomManbow2::getWriteCacheLine(), openmsx::RomMatraCompilation::getWriteCacheLine(), openmsx::RomMitsubishiMLTS2::getWriteCacheLine(), openmsx::RomMSXDOS2::getWriteCacheLine(), openmsx::RomMSXtra::getWriteCacheLine(), openmsx::RomMSXWrite::getWriteCacheLine(), openmsx::RomNational::getWriteCacheLine(), openmsx::RomNeo16::getWriteCacheLine(), openmsx::RomNeo8::getWriteCacheLine(), openmsx::RomPanasonic::getWriteCacheLine(), openmsx::RomPlayBall::getWriteCacheLine(), openmsx::RomRamFile::getWriteCacheLine(), openmsx::RomRetroHard31in1::getWriteCacheLine(), openmsx::RomRType::getWriteCacheLine(), openmsx::RomSuperSwangi::getWriteCacheLine(), openmsx::RomSynthesizer::getWriteCacheLine(), openmsx::RomZemina126in1::getWriteCacheLine(), openmsx::RomZemina25in1::getWriteCacheLine(), openmsx::RomZemina80in1::getWriteCacheLine(), openmsx::RomZemina90in1::getWriteCacheLine(), openmsx::MSXModem::getWriteCacheLine(), openmsx::MSXFmPac::getWriteCacheLine(), openmsx::PanasonicAudioPeriphery::getWriteCacheLine(), openmsx::Y8950Periphery::getWriteCacheLine(), openmsx::ColecoSuperGameModule::getWriteCacheLine(), openmsx::MusicalMemoryMapper::getWriteCacheLine(), openmsx::PanasonicRam::getWriteCacheLine(), openmsx::MSXBunsetsu::getWriteCacheLine(), openmsx::MSXToshibaTcx200x::getWriteCacheLine(), openmsx::MSXRS232::getWriteCacheLine(), openmsx::MSXMusicWX::getWriteCacheLine(), openmsx::MSXSCCPlusCart::getWriteCacheLine(), openmsx::MSXYamahaSFG::getWriteCacheLine(), openmsx::YamahaSKW01::getWriteCacheLine(), and openmsx::PanasonicRam::writeIO().