System Debug Reference Manual (32650-90888)
502 Chapter11
System Debug Standard Functions
func sys
$nmdebug > wl symval(addr "StudentRecord.Name")
Bill
$nmdebug > wl symval(addr, "StudentRecord.Year")
SENIOR
$nmdebug > IF symval(addr "StudentRecord.Year") = "SENIOR" THEN wl
"GRAD!"
GRAD!
Refer to the section "Using the Symbolic Formatter" in chapter 5 for more examples
including pointers, arrays, and variant/invariant record structures.
Limitations, Restrictions
The path specification used by the SYMVAL function must evaluate to a simple type or a
string. In particular, SYMVAL does not return an array, a record, or a set data structure.
func sys
Coerces an expression into a SYS logical code pointer (LCPTR).
Syntax
sys (
value
)
During the evaluation of the parameter to this function, the search path used for
procedure name lookups is limited to the system library file (SYS).
Formal Declaration
sys:sys (
value
:any)
Parameters
value
An expression to be coerced. All types are valid.
Table 11-1. Derivation of the SYS Bit Pattern
Parameter Type Action
BOOL 0.1 if TRUE, 0.0 if FALSE.
U16
U32
SPTR
Set the SID part to zero. Right justify the original
value in the low-order 32 bits of the offset part
with zero fill.