|
|
Hashes a virtual address into a hash table (real) offset.
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.
hash:s32 (virtaddr:ptr)
- virtaddr
The virtual address that is to be hashed.
Virtaddr can be a short pointer, a long pointer, or a
full logical code pointer.
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.
None
|