System Debug Reference Manual (32650-90888)
390 Chapter10
System Debug Standard Functions
func cmva
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 cmva
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