| |||
| Home > DS-5 Debugger commands > DS-5 Debugger commands listed in alphabetical order > print, inspect | |||
This command displays the output of an expression and also
records the result in a debugger variable. Results from the print command
can be used successively in expressions using the $ character.
[/printflag] [expression]
inspect [/flag] [expression]
Where:
flagSpecifies the output format:
xHexadecimal (casts the value to an unsigned integer prior to printing in hexadecimal)
dSigned decimal. This is the default.
uUnsigned decimal
oOctal
tBinary
aAbsolute hexadecimal address
cCharacter
fFloating-point
sDefault format from the expression.
expressionSpecifies an expression that is evaluated and the
result is returned. If no is
specified then the last expression is repeated.expression
If your expression accesses memory then a default address
variable is set to the location after the last accessed address.
Some commands, such as x, use this default value
if no address is specified.