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

func hash

» 

Technical documentation

Complete book in PDF
» Feedback

 » Table of Contents

 » Index

Hashes a virtual address into a hash table (real) offset.

Syntax

   hash (virtaddr)

The hash value can be added to the Hash table base real address (TR1) to determine the real offset to the first PDIR entry.

Formal Declaration

   hash:s32 (virtaddr:ptr)

Parameters

virtaddr

The virtual address that is to be hashed.

Virtaddr can be a short pointer, a long pointer, or a full logical code pointer.

Examples

   nmdat > wl pc

   SYS $a.d87f8



   nmdat > wl hash(pc)

   $103c4



   nmdat > dz tr1+hash(pc)

   REAL $103c4    $ 00001b00



   nmdat > dz tr0+1b00,4

   REAL $0061dd00 $ 80000000 0000000a 000d8000 82800000

Hash the virtual address for PC ($a.d87f8) to get real address $103c4. Add the hash value ($103c4) to the base of the Hash table (TR1) to get the offset of the first PDIR entry ($1b00). Add this offset to the base of the PDIR table (TR0), and display the four-word PDIR entry.

Limitations, Restrictions

none

Feedback to webmaster