HPlogo System Debug Reference Manual > Chapter 10 System Debug Standard Functions

func vtos

MPE documents

Complete PDF
Table of Contents
Index

E0201 Edition 4 ♥
E0300 Edition 3
E0692 Edition 3

Virtual to secondary. Converts a virtual address to a secondary storage address.

Syntax



   vtos (virtaddr)

The function VTOS returns a secondary storage address as an SADDR, whose SID part is the secondary storage LDEV number and whose offset part is the disk byte address.

Formal Declaration



   vtos:saddr (virtaddr:ptr)

Parameters


virtaddr

The virtual address to be converted to a secondary storage address.

Virtaddr can be either a short or long pointer.

Examples



   $nmdebug > wl vtos(b.40040200)
   SADDR $14.e0200

Convert the virtual address b.40040200 to a secondary storage address and display the result. The secondary storage address is LDEV $14 at byte offset $e0200.

Limitations, Restrictions


none




func vtor


Chapter 11 System Debug Standard Functions