HPlogo System Debug Reference Manual: HP 3000 MPE/iX Computer Systems > Chapter 8 System Debug Standard Functions

func cmseg

» 

Technical documentation

Complete book in PDF
» Feedback

 » Table of Contents

 » Index

Returns the CM segment name for the specified CM logical code address.

Syntax

 cmseg (cmlogaddr)  

Formal Declaration

   cmseg:str (cmlogaddr:lcptr) 

Parameters

cmlogaddr

The CM logical code address for which the segment name is desired.

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)

Note that the offset portion of the LCPTR address is required, but ignored.

Examples

   $cmdebug > wl cmseg(prog(0.0))

   SEG'



   $cmdebug > wl cmseg(fopen)

   XLSEG11

Limitations, Restrictions

none

Feedback to webmaster