System Debug Reference Manual (32650-90888)
Chapter 10 393
System Debug Standard Functions
func cstx
and the second procedure is located again (within the group library).
%cmdebug > wl cst(sys(24.630))
CST %24.630
The coercion simply changes the associated absolute file. Note that no complicated
conversion or range checking is performed.
Limitations, Restrictions
none
func cstx
Coerces an expression into a CSTX absolute code pointer (ACPTR).
Syntax
cstx (
value
)
CM program segments are loaded into the CSTX. CM library segments are loaded into the
CST.
During the evaluation of the parameter to the CSTX function, the CM search path is limited
to the program file (PROG).
Formal Declaration
cstx:cstx (
value
:any)
Parameters
value
An expression to be coerced. All types are valid.
Table 10-3. Derivation of the CSTX Bit Pattern
Parameter Type Action
BOOL 0.1 if TRUE, 0.0 if FALSE.
U16
S16
Set the high-order 32 bits (SID or segment part) to zero. Right justify the
original 16-bit value in the low-order 32 bits (offset part) with zero fill.
U32
S32
SPTR
Set the high-order 32 bits (SID or segment part) to zero. Transfer the
original bit pattern into the low-order 32 bits (offset part) unchanged.