System Debug Reference Manual (32650-90888)

434 Chapter10
System Debug Standard Functions
func pub
Examples
$nmdebug > wl pstate(8)
INITIATE
$nmdebug > wl pstate(f)
DYING
$nmdebug > if pstate(16) = "ALIVE" then formatprocess(16)
Limitations, Restrictions
none
func pub
Coerces an expression into a PUB logical code pointer (LCPTR).
Syntax
pub (
value
)
During the evaluation of the parameter to this function, the search path used for
procedure name lookups is limited to the account library file (PUB).
Formal Declaration
pub:pub (
value
:any)
Parameters
value
An expression to be coerced. All types are valid.
Table 10-10. Derivation of the PUB 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.
S16
S32
S64
Set the SID part to zero. Right justify the original value in the low-order
32 bits of the offset part with sign extension.
LONG Class Transfer both parts of the address unchanged.