System Debug Reference Manual (32650-90888)
444 Chapter10
System Debug Standard Functions
func stol
$nmdat > wl sptr( 1234abcd )
$1234abcd
$nmdat > wl sptr( -1 )
$ffffffff
$nmdat > wl sptr( 1234.5678 )
$5678
$nmdat > wl sptr( true )
$1
$nmdat > wl sptr( "ABCDEFG" )
$44454647
$nmdat > wl sptr( prog(1.2) )
$2
Limitations, Restrictions
none
func stol
Short to long. Converts a virtual address to a long pointer.
Syntax
stol (
virtaddr
)
If the parameter
virtaddr
is a short pointer (SPTR), then it is converted based on the space
registers for the current PIN.
If the parameter
virtaddr
is a already a long pointer (LPTR) or a code pointer (ACPTR or
LCPTR), then the long pointer (portion) is simply returned.
Formal Declaration
stol:lptr (
virtaddr
:ptr)
Parameters
virtaddr
The virtual address to be converted to a long pointer.
Virtaddr
can be either a short or long pointer.