System Debug Reference Manual (32650-90888)
Chapter 2 37
User Interface
Expressions
Concatenation Operator
The concatenation operator (&+) concatenates two string operands. Examples of the use of
this operator are listed below:
$nmdebug > var s1 = "abc"
$nmdebug > var s2 = "def"
$nmdebug > var s3 = s1 + s2
$nmdebug > wl s3
abcdef
$nmdebug > var s4 = s3 + '123'
$nmdebug > wl s4
abcdef123
$nmdebug >
Expressions
Expressions are formulas for computing new values from a collection of operators and
their operands. Operator precedence, in combination with the use of parentheses,
determines the order of expression evaluation. When two or more operators of the same
precedence occur at the same level of evaluation, they are evaluated from left to right.
$cmdebug > w1 [DST 22.203]
%20377
Contents of data segment 22 offset 203.
$cmdebug > w1 [S-2]
%0
Contents of S-2.
$cmdebug > w1 [cmlog fopen+3]
%213442
Contents of the instruction found at CM
logical code address FOPEN+3.
$nmdebug > w1 [cst 12.432]
$6
Contents of code segment 12 offset 432.
$nmdebug > w1 [cst %12.%432]
$6
Same as above but from NM instead of CM.
$nmdebug > w1 [virt CSTVA(%12.%432)]
$6
Same as above. The CSTVA function is used to
translate CST %12.%432 to its virtual address.
$cmdebug > w1 [Q-3]
%17
Contents of Q-3.
$nmdebug > w1 [virt dstva(sdst.q-3)]
$f
Same as above. Contents of Q-3.
Table 2-5. Indirection Operator Examples
Indirection Operator Examples: