HPlogo System Debug Reference Manual: HP 3000 MPE/iX Computer Systems > Chapter 8 System Debug Standard Functions

func sid

» 

Technical documentation

Complete book in PDF
» Feedback

 » Table of Contents

 » Index

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


Limitations, Restrictions

none

Feedback to webmaster