OpenASIP
2.0
|
#include <MemWriteCommand.hh>
Additional Inherited Members | |
Protected Member Functions inherited from SimControlLanguageCommand | |
bool | setMemoryAddress (const std::string &addressString, std::string &addressSpaceName, std::size_t &memoryAddress) |
bool | setMemoryPointer (MemorySystem::MemoryPtr &memory, const std::string &addressSpaceName) |
Implementation of the "load_data" command of the Simulator Control Language.
Definition at line 48 of file MemWriteCommand.hh.
MemWriteCommand::MemWriteCommand | ( | ) |
Definition at line 49 of file MemWriteCommand.cc.
|
virtual |
Definition at line 54 of file MemWriteCommand.cc.
|
virtual |
Executes the "load_data" command.
This low-level command reads binary data from file and loads it to memory starting at specified address.
arguments | Memory address to be written, file to read from, read size. |
NumberFormatException | Is never thrown by this command. |
Implements CustomCommand.
Definition at line 68 of file MemWriteCommand.cc.
References CustomCommand::checkArgumentCount(), SimControlLanguageCommand::checkProgramLoaded(), StringTools::ciEqual(), FileSystem::fileExists(), FileSystem::fileIsReadable(), CustomCommand::interpreter(), ScriptInterpreter::setError(), SimControlLanguageCommand::setMemoryAddress(), SimControlLanguageCommand::setMemoryPointer(), ScriptInterpreter::setResult(), FileSystem::sizeInBytes(), SimulatorToolbox::textGenerator(), and Texts::TXT_ADDRESS_OUT_OF_RANGE.
|
virtual |
Implements CustomCommand.
Definition at line 133 of file MemWriteCommand.cc.
References Texts::TextGenerator::text(), SimulatorToolbox::textGenerator(), and Texts::TXT_INTERP_HELP_LOADDATA.