System Debug Reference Manual (32650-90888)
442 Chapter10
System Debug Standard Functions
func sid
$nmdat > wl saddr( prog(1.2) )
SADDR $1.2
Limitations, Restrictions
none
func sid
Returns the space ID (SID) portion of a virtual or extended 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 an extended 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 an extended address.
Examples
$nmdebug > wl pc
PROG $2e.213403
$nmdebug > wl sid(pc)
$2e
$nmdebug > wl sid(213403)
$2e
$nmdebug > wl sid(a.1234)
$a