Debug Manual

Table Of Contents
Debug Command Overview
Debug Manual421921-003
3-9
Expression Syntax
Expression Syntax
Several Debug commands have address and count parameters that are supplied in the
form of an expression. An expression can represent a 16-bit integer, a 32-bit integer, or
ASCII characters.
The format of an expression:
The term parameter is of the form:
value [ op value ]...
The value parameter has one of these forms:
( expression )
is an expression in parentheses to be treated as a single value.
'c1[c2[c3[c4]]]’
is an apostrophe followed by 1 through 4 ASCII characters, c1, c2, c3, c4
and a trailing apostrophe.
PCB expression
represents the address of the specified PCB. The expression parameter is a
value that indicates the number of the PCB. PCB is allowed only in privileged
mode.
number[.number]
is an integer value to be treated as a 16-bit word or a 32-bit word. It represents
a 32-bit word if [.number] is present or if number is too large to be represented
in a 16-bit word.
The format of the number parameter:
[ + | - | % | # | %H | 0X ] integer
The value of number is negative if - is present and positive if - is absent.
The + is an optional unary plus.
SP specifies the space identifier.
R0 through R7 specify one of the registers in the register stack.
RA through RH is an alternative specification for the eight stack
registers, where RA is the current top of stack, RB is the
next one down, and so forth.
term [ { + } term ]...
{ - }