|
OpenASIP 2.2
|
#include <TestOsal.hh>


Public Member Functions | |
| CmdMem () | |
| CmdMem (const CmdMem &cmd) | |
| virtual | ~CmdMem () |
| virtual bool | execute (const std::vector< DataObject > &arguments) |
| virtual std::string | helpText () const |
Public Member Functions inherited from CustomCommand | |
| CustomCommand (std::string name) | |
| CustomCommand (const CustomCommand &cmd) | |
| virtual | ~CustomCommand () |
| std::string | name () const |
| void | setContext (InterpreterContext *context) |
| InterpreterContext * | context () const |
| void | setInterpreter (ScriptInterpreter *si) |
| ScriptInterpreter * | interpreter () const |
| bool | checkArgumentCount (int argumentCount, int minimum, int maximum) |
| bool | checkIntegerArgument (const DataObject &argument) |
| bool | checkPositiveIntegerArgument (const DataObject &argument) |
| bool | checkUnsignedIntegerArgument (const DataObject &argument) |
| bool | checkDoubleArgument (const DataObject &argument) |
Static Public Attributes | |
| static const std::string | MEM_BYTE = "byte" |
| Name for byte memory access. | |
| static const std::string | MEM_HALF_WORD = "halfword" |
| Name for half word memory access. | |
| static const std::string | MEM_WORD = "word" |
| Name for word memory access. | |
| static const std::string | MEM_DOUBLE_WORD = "double" |
| Name for double word memory access. | |
Command for viewing memory contents.
This implementation expects that MAU is 1 byte.
Definition at line 168 of file TestOsal.hh.
| CmdMem::CmdMem | ( | ) |
Constructor.
Definition at line 710 of file TestOsal.cc.
|
explicit |
Copy constructor.
| cmd | Command to be copied. |
Definition at line 718 of file TestOsal.cc.
|
virtual |
|
virtual |
Executes the command.
| arguments | Arguments for the command. |
| NumberFormatException | If DataObject conversion fails. |
Implements CustomCommand.
Definition at line 735 of file TestOsal.cc.
References assert, CustomCommand::context(), SimpleScriptInterpreter::context(), CustomCommand::interpreter(), MEM_BYTE, MEM_DOUBLE_WORD, MEM_HALF_WORD, MEM_WORD, CmdOutput::OUTPUT_FORMAT_LONG_SIGNED, CmdOutput::OUTPUT_FORMAT_LONG_UNSIGNED, Memory::read(), Memory::readBE(), SimValue::setBitWidth(), ScriptInterpreter::setResult(), DataObject::setString(), Conversion::toInt(), and Conversion::toString().

|
virtual |
Returns the help text of the command.
Implements CustomCommand.
Definition at line 824 of file TestOsal.cc.
References MEM_BYTE, MEM_DOUBLE_WORD, MEM_HALF_WORD, and MEM_WORD.
|
static |
Name for byte memory access.
Definition at line 172 of file TestOsal.hh.
Referenced by execute(), and helpText().
|
static |
Name for double word memory access.
Definition at line 178 of file TestOsal.hh.
Referenced by execute(), and helpText().
|
static |
Name for half word memory access.
Definition at line 174 of file TestOsal.hh.
Referenced by execute(), and helpText().
|
static |
Name for word memory access.
Definition at line 176 of file TestOsal.hh.
Referenced by execute(), and helpText().