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

func nmtocmnode

MPE documents

Complete PDF
Table of Contents
Index

E0201 Edition 4 ♥
E0300 Edition 3
E0692 Edition 3

Returns the CM logical code address of the closest CM node point corresponding to the specified NM address.

Syntax



   nmtocmnode (virtaddr [node])

Refer to appendix C for a discussion of CM object code translation, node points, and breakpoints in translated CM code.

Formal Declaration



   nmtocmnode:lcptr (virtaddr:lptr [node:str="PREV"])

Parameters


virtaddr

The virtual address of NM translated code for which the closest CM node point is to be returned.

Virtaddr can be a short pointer, a long pointer, or a full logical code pointer.

node

The desired node point, either PREV (closest previous node) or NEXT (closest next node). If unspecified, then PREV is assumed.

Examples



   $nmdebug > wl nmtocmnode(21.24030):"%"
   SYS %12.224

Print the CM address of the closest NM previous (by default) node point.

   $nmdebug > wl nmtocmnode(21.24030, "next"):"%"
   SYS %12.232

Print the CM address of the closest NM next node point.

Limitations, Restrictions


none




func nmstacklimit


func off