Native Inspect Manual (H06.13+, J06.03+)
Where:
commandname
The name of the command to be defined. If a command by that name already exists, you are
asked to confirm if you want to redefine that command.
Usage Note
A user-defined command is a sequence of commands to which you assign a new name as a
command. This is done with the define command. User commands can accept up to 10 arguments
separated by whitespace. You access arguments within the user-defined command by specifying
$arg0 ... $arg9.
Example
• This defines the command adder, which prints the sum of its three arguments. The arguments
are text substitutions, so they may reference variables, use complex expressions, or even
perform further functions calls.
define adder
print $arg0 + $arg1 + $arg2
end
To execute the command adder, use:
adder 1 2 3
• This is an example of defining the user-defined command xyz. This gives you a new command
to print the value of the variable xyz in hex (/x).
(eInspect 0,144):define xyz
Type commands for definition of "xyz".
End with a line saying just "end".
>p /x xyz
>end
dn Command
A Debug-compatible Tcl command that displays memory in the format you specify.
dn native-address [count] [:format]
Where:
native-address
The address at which you want to display memory. The d command accepts only 32-bit and
64-bit addresses. See Syntax of native-address (page 61).
count
The number of items to display. The default value is one.
:format
The format in which to display memory. Options are:
• a for ASCII
• I for ICODE (instruction code)
• o [n] for octal.
• d [n] for decimal.
• h [n] for hexadecimal.
Where [n] is the bit size, expressed as 8, 16, 32, or 64. The default value is 32.
If you omit the format option, 32-bit quantities are displayed in the default output base.
72 Native Inspect Command Syntax










