System Debug Reference Manual (32650-90888)

Chapter 4 73
System Debug Command Specifications :-Exit
=
Every time this command is used, Debug assumes ownership of the Control-Y handler
(even if it already owns it).
=
The calculator command.
Calculates the value of an expression and displays the result in the specified base.
Syntax
=
expression
[
base
]
Parameters
expression
The expression to evaluate.
base
The desired representation mode for output values:
% or octal Octal representation
# or decimal Decimal representation
$ or hexadecimal Hexadecimal representation
ASCII ASCII representation
This parameter can be abbreviated to a single character.
If omitted, the current output base is used. Refer to the SET command to
change the current output base.
String expressions (of four or fewer characters) are automatically coerced
into a numeric value when the display base of octal, decimal, or
hexadecimal is specified.
Examples
%cmdebug > = 12 + #10 + $a, d
#30
What is octal 12 (current input base) plus decimal 10 plus hex a, in decimal?
%cmdebug > = 5 + (-2)
%3
Negative values that follow immediately after an operator (+, -, *, /) must be placed within
parentheses.
%cmdebug > = 'ABCD'
'ABCD'
%cmdebug > = 'ABCD',h
$41424344