|
|
Returns the space ID (SID) portion of a virtual or extended address.
sid (virtaddr)
The SID function returns the space ID portion of a virtual address.
If the parameter virtaddr is a short pointer (SPTR)
it is internally converted to a long pointer by the STOL function,
and the resulting SID portion is returned.
If the parameter virtaddr is a long pointer or an extended
address, the SID portion is simply extracted and returned.
sid:u32 (virtaddr:ptr)
- virtaddr
The virtual address from which the space ID (SID) portion is returned.
Virtaddr can be a short pointer, a long pointer, or an
extended address.
$nmdebug > wl pc
PROG $2e.213403
$nmdebug > wl sid(pc)
$2e
$nmdebug > wl sid(213403)
$2e
$nmdebug > wl sid(a.1234)
$a
None
|