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

func logtoabs

» 

Technical documentation

Complete book in PDF
» Feedback

 » Table of Contents

 » Index

Logical to absolute. Converts a CM logical code address (LCPTR) into a CM absolute code address (ACPTR).

Syntax

   logtoabs (cmlogaddr)  

Formal Declaration

   logtoabs:acptr (cmlogaddr:lcptr) 

Parameters

cmlogaddr

The CM logical code address to be converted into an absolute code pointer.

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

   %cmdebug > wl logtoabs(prog(0.1273))

   CSTX %1.1273

Logical CM address PROG 0.1273 is converted into absolute address CSTX 1.1273.

   %cmdebug > wl logtoabs(sys(32.304))

   CST %43.304

Logical CM address SYS 32.304 is converted into absolute address CST 43.304.

   %cmdebug > wl logtoabs(grp(4.4274))

   CST %103.4274

Logical group library address GRP 4.4274 is converted into absolute address CST 103.4274.

Limitations, Restrictions

none

Feedback to webmaster