System Debug Reference Manual (32650-90888)
436 Chapter10
System Debug Standard Functions
func rtov
Limitations, Restrictions
none
func rtov
Real to virtual. Converts a real address to a virtual address.
Syntax
rtov (
realaddr
)
Formal Declaration
rtov:lptr (
realaddr
:u32)
Parameters
realaddr
The real address to be converted to a virtual address.
Examples
$nmdebug > wl pc
PROG $741.5934
Display the current logical code address (LCPTR) of the NM program counter.
$nmdebug > wl vtor(pc)
$1827934
Translate the logical code address (LCPTR) into the corresponding real address.
$nmdebug > wl rtov(1827934)
$741.5934
Convert the real address back into a virtual address (LPTR).
Limitations, Restrictions
none
func s16
Coerces an expression into a signed 16-bit value.