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

func cmtonmnode

MPE documents

Complete PDF
Table of Contents
Index

E0201 Edition 4 ♥
E0300 Edition 3
E0692 Edition 3

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

Syntax



   cmtonmnode (cmlogaddr [node])

Refer to Appendix C for a discussion of CM Object Code Translation (OCT) node points, and breakpoints in translated CM code.

Formal Declaration



   cmtonmnode:trans (cmlogaddr:lcptr [node:str=PREV])

Parameters


cmlogaddr

The CM logical code address of translated code for which the closest NM node point 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)

node

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

Examples



   $nmdebug > wl cmtonmnode(sys(2.%226))
   TRANS $21.24024

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

   $nmdebug > wl cmtonmnode(sys(2.%226), "next")
   TRANS $21.2404c

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

Limitations, Restrictions


none




func cmstart


func cmva