System Debug Reference Manual (32650-90888)

Chapter 10 387
System Debug Standard Functions
func cmstart
Parameters
pin
The process identification number (PIN) for which the virtual address of
the CM stack limit is to be returned.
Examples
$nmdebug > wl cmstacklimit(%10)
$2c4.40015fff
Display the virtual address of the CM stack limit for pin %10.
$nmdat > wl "CM stack size = ", cmstacklimit(pin) - cmstackbase(PIN) +1
CM stack size = $4350
Calculate and display the CM stack length (in bytes) for the current PIN.
Limitations, Restrictions
If the PIN does not exist, the function result is undefined and an error status is set.
func cmstart
Returns the starting point of the procedure containing the indicated CM logical code
address.
Syntax
cmstart (
cmlogaddr
)
Start addresses correspond to the CODE column in the PMAP generated by the Segmenter.
Refer to the CM program example below.
Formal Declaration
cmstart:lcptr (
cmlogaddr
:lcptr)
Parameters
cmlogaddr
A CM logical code pointer address for which the starting address of the
containing level one procedure is to be returned.
Cmlogaddr
must be a full CM logical code address (LCPTR). For example:
CMPC Current CM program counter
CMPW+4 Top of CM program window + 4
PROG(2.102) Program file logical seg 2 offset 102
fopen+102 CM procedure fopen + %102 (assumes CM mode)