OpenASIP
2.0
|
Public Member Functions | |
InfoRegistersCommand (SimControlLanguageCommand &parentCommand) | |
virtual | ~InfoRegistersCommand () |
virtual bool | execute (const std::vector< DataObject > &arguments) |
Public Member Functions inherited from SimControlLanguageSubCommand | |
SimControlLanguageSubCommand (SimControlLanguageCommand &parentCommand) | |
virtual | ~SimControlLanguageSubCommand () |
virtual SimControlLanguageCommand & | parent () |
Static Public Member Functions | |
static std::string | registerDescription (const std::string ®Name, const SimValue &value) |
Implementation of "info registers".
Definition at line 92 of file InfoCommand.cc.
|
inline |
Constructor.
Definition at line 98 of file InfoCommand.cc.
|
inlinevirtual |
|
inlinevirtual |
Executes the "info registers" command.
"info registers regfile regname" prints the value of register regname in register file regfile, where regfile is the name of a register file of the target processor, and regname is the name of a register that belongs to the specified register file. If regname is omitted, values of all registers of the specified register file are displayed.
arguments | Arguments to the command, including "info registers". |
Implements SimControlLanguageSubCommand.
Definition at line 120 of file InfoCommand.cc.
References abortWithError, StringTools::ciEqual(), CustomCommand::interpreter(), SimControlLanguageSubCommand::parent(), registerDescription(), ScriptInterpreter::setError(), ScriptInterpreter::setResult(), SimControlLanguageCommand::simulatorFrontend(), SimulatorFrontend::state(), SimulatorToolbox::textGenerator(), Conversion::toString(), Texts::TXT_REGISTER_NOT_FOUND, and ReadableState::value().
|
inlinestatic |
Helper function to get register description in correct format.
regName | The name of the register to print. |
value | The current value of the register. |
Definition at line 195 of file InfoCommand.cc.
References SimValue::hexValue(), SimValue::sLongWordValue(), and Conversion::toString().
Referenced by execute(), InfoImmediatesCommand::execute(), and InfoPortsCommand::execute().