func sid [ System Debug Reference Manual ] MPE/iX 5.0 Documentation
System Debug Reference Manual
func sid
Returns the space ID (SID) portion from a virtual address.
Syntax
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 a full logical code
address, the SID portion is simply extracted and returned.
Formal Declaration
sid:u32 (virtaddr:ptr)
Parameters
virtaddr The virtual address from which the space ID (SID)
portion is returned.
Virtaddr can be a short pointer, a long pointer, or a
full logical code pointer.
Examples
$nmdebug > wl pc
PROG $2e.213403
$nmdebug > wl sid(pc)
$2e
$nmdebug > wl sid(213403)
$2e
$nmdebug > wl sid(a.1234)
$a
Limitations, Restrictions
none
MPE/iX 5.0 Documentation