|
|
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.
Examples
$nmdebug > dr sr4; dr sr5
sr4=$41
sr5=$53
$nmdebug > wl sp
$40163088
$nmdebug > wl stol(sp)
$53.40163088
$nmdebug > wl stol(1cbb8c)
$41.1cbb8c
$nmdebug > wl stol(15f.1cbb8c)
$15f.1cbb8c
Limitations, Restrictions
none
|