System Debug Reference Manual (32650-90888)
380 Chapter10
System Debug Standard Functions
func cmproc
name. The offset is formatted based on the current fill, justification, and
output base values.
Formal Declaration
cmproc:str (
cmlogaddr
:lcptr)
Parameters
cmlogaddr
The CM logical code address for which the CM symbolic procedure
name/offset 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)
cmaddr('fopen')+%102 CM procedure fopen + %102 (NM or CM
mode)
Examples
Assume that the following single-segment CM program has been compiled, linked with the
PMAP and FPMAP options, and is now being executed:
PROGRAM test (input,output);
PROCEDURE one;
begin {one}
writeln('ONE');
end; {one}
PROCEDURE two;
PROCEDURE three;
begin {three}
writeln('THREE');
end; {three}
begin {two}
writeln('TWO');
three;
end; {two}
begin {main body} { Outer block is named "ob'" by the compiler }
one;
two;
end. {main body}