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

func cmva

MPE documents

Complete PDF
Table of Contents
Index

E0201 Edition 4 ♥
E0300 Edition 3
E0692 Edition 3

Returns the virtual address of a specified CM code address.

Syntax



   cmva (cmaddr [pin])

Compatibility mode code may be emulated or translated into NM. This function always returns addresses based on emulated CM object code.

Another function (CMTONMNODE) can be used to locate the nearest corresponding NM node point address if the CM object code has been translated into NM.

Refer to appendix C for a discussion of CM object code translation, node points, and breakpoints in translated CM code. See the T(ranslate) commands in Chapter 4 for additional information.

Formal Declaration



   cmva:lptr (cmaddr:cptr [pin:u16 = 0])

Parameters


cmaddr

A CM code address to be converted to a virtual address. Both logical and absolute code addresses are supported.

pin

The process identification number (PIN) to which the code segment belongs. If pin is not specified, it defaults to 0, which is defined to be the current PIN.

Examples



   $nmdebug > wl cmva(cmpc)
   $26.0000124c

Convert the current CM logical address pointer, for the current PIN, to a NM virtual address and display the result.

   $nmdebug > wl cmva(SYS(%23.%250,$24))
   $3f.00000250

Convert CM logical address SYS %23.%250, for the process associated with PIN $24, to a NM virtual address and display the result.

   $nmdebug > wl cmva(CST(3.0))
   $21.000034c4

Convert absolute CM address CST 3.0, for the current PIN, to a NM virtual address and display the result.

Limitations, Restrictions


none




func cmtonmnode


func cst