OpenASIP
2.0
|
Public Member Functions | |
InfoImmediatesCommand (SimControlLanguageCommand &parentCommand) | |
virtual | ~InfoImmediatesCommand () |
virtual bool | execute (const std::vector< DataObject > &arguments) |
![]() | |
SimControlLanguageSubCommand (SimControlLanguageCommand &parentCommand) | |
virtual | ~SimControlLanguageSubCommand () |
virtual SimControlLanguageCommand & | parent () |
Implementation of "info immediates".
Definition at line 206 of file InfoCommand.cc.
|
inline |
Constructor.
Definition at line 212 of file InfoCommand.cc.
|
inlinevirtual |
|
inlinevirtual |
Executes the "info immediates" command.
"info immediates iunit regname" prints the value of register regname in immediate unit iunit, 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 immediate unit are displayed.
arguments | Arguments to the command, including "info immediates". |
Implements SimControlLanguageSubCommand.
Definition at line 234 of file InfoCommand.cc.
References abortWithError, TTAMachine::Machine::Navigator< ComponentType >::count(), TTAMachine::Machine::Navigator< ComponentType >::hasItem(), TTAMachine::Machine::immediateUnitNavigator(), CustomCommand::interpreter(), SimValue::intValue(), SimulatorFrontend::machine(), SimControlLanguageSubCommand::parent(), InfoRegistersCommand::registerDescription(), ScriptInterpreter::setError(), ScriptInterpreter::setResult(), SimControlLanguageCommand::simulatorFrontend(), SimulatorToolbox::textGenerator(), Conversion::toString(), Texts::TXT_IMMEDIATE_UNIT_NOT_FOUND, and Texts::TXT_REGISTER_NOT_FOUND.