System Debug Reference Manual (32650-90888)

74 Chapter4
System Debug Command Specifications :-Exit
=
In the second example, the string is coerced into a hexadecimal value.
%cmdebug > = [dst 12.100] + [db+4], $
$4820
The sum of the contents of data segment 12.100 plus the contents of DB+4, displayed in
hexadecimal.
%cmdebug > = fopen
SYS %22.4774
What is the start address of the CM procedure FOPEN? The address is returned as logical
code address.
%cmdebug > = ?fopen
SYS %22.5000
What is the entry point address of the CM procedure FOPEN?The question mark is used
(CM) to indicate entry point, rather than start address.
$nmdebug > = [r12]
$c04
The indirect contents of register 12.
$nmdebug > = vtor (c.c0000000)
$0020800
$nmdebug > = rtov (20800)
$c.c0000000
Translate a virtual address to a real address and then back again.
$nmdebug > = 1 << 2
$4
The value 1, left-shifted by two bits.
$nmdebug > = $1234 band $ff
$34
The value $1234, Bit-ANDed with the mask $ff.
$nmdebug > = sendio
SYS $a.$219ef0
What is the start address of NM procedure sendio?
$nmdebug > = ?sendio
SYS $a.$217884
What is the address of the export stub for NM procedure sendio? Note the different use of
"?" in CM and NM. In CM "?" is used for entry address, while in NM "?" is used for
export stub.
$nmdebug > = strup("super") + 'duper'
"SUPERduper"
The calculator accepts string expressions as well as numeric expressions.