HPlogo System Debug Reference Manual > Chapter 10 System Debug Standard Functions

func phystolog

MPE documents

Complete PDF
Table of Contents
Index

E0201 Edition 4 ♥
E0300 Edition 3
E0692 Edition 3

Converts a CM physical segment number and mapping bit to a CM logical code address.

Syntax



   phystolog (physsegnum [mappingbit])

This function is typically used to manually examine CM stack markers, and CM external plabels.

The offset part of the returned CM logical code address is always set to zero.

Formal Declaration



   phystolog:lcptr (physsegnum:u16 [mappingbit:bool=FALSE])

Parameters


physsegnum

The CM physical segment number to be converted to a CM logical address.

mappingbit

A Boolean that implies that the segment is physically mapped (TRUE = 1) or logically mapped (FALSE = 0). By default, mappingbit is FALSE.

Examples



   %cmdebug > wl phystolog( 303 )
   PROG %2.0

Physical segment number %303 is converted into logical code segment PROG 2.

   %cmdebug > wl phystolog( 122 )
   GRP %2.0

Physical segment number %122 is converted into logical code segment GRP %2.

Limitations, Restrictions


none




func pcbx


func pib