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

func nmentry

MPE documents

Complete PDF
Table of Contents
Index

E0201 Edition 4 ♥
E0300 Edition 3
E0692 Edition 3

Returns the entry point of the NM procedure containing the indicated address.

Syntax



   nmentry (virtaddr)

Formal Declaration



   nmentry:lptr (virtaddr:ptr)

Parameters


virtaddr

The virtual address for which the entry point of the surrounding (level one) NM procedure is to be returned.

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

Examples



   $nmdebug > wl average
   GRP $4d8.15c88

   $nmdebug > wl nmentry( average+20 )
   GRP $4d8.15c88

Print the address for the procedure average. Given any offset within the procedure, the NMENTRY function returns the address of the procedure's entry point.

   $nmdebug > wl nmaddr("processstudent.highscore")
   PROG $4d5.5b50

   $nmdebug > wl nmentry ( nmaddr( "highscore" "nested") + 40 )
   PROG $4d5.5b50

Print the address for the nested procedure highscore. Given any offset within the nested procedure, the NMENTRY function will return the address of the nested procedure's entry point.

Limitations, Restrictions


none




func nmcall


func nmfile