System Debug Reference Manual (32650-90888)

Chapter 10 391
System Debug Standard Functions
func cst
additional information.
Formal Declaration
cmva:lptr (
cmaddr
:cptr [
pin
:u16 = 0])
Parameters
cmaddr
A CM code address to be converted to a virtual address. Both logical and
absolute code addresses are supported.
pin
The process identification number (PIN) to which the code segment
belongs. If
pin
is not specified, it defaults to 0, which is defined to be the
current PIN.
Examples
$nmdebug > wl cmva(cmpc)
$26.0000124c
Convert the current CM logical address pointer, for the current PIN, to a NM virtual
address and display the result.
$nmdebug > wl cmva(SYS(%23.%250,$24))
$3f.00000250
Convert CM logical address SYS %23.%250, for the process associated with PIN $24, to a
NM virtual address and display the result.
$nmdebug > wl cmva(CST(3.0))
$21.000034c4
Convert absolute CM address CST 3.0, for the current PIN, to a NM virtual address and
display the result.
Limitations, Restrictions
none
func cst
Coerces an expression into a CST absolute code pointer (ACPTR).
Syntax
cst (
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 CST function, the following CM search path