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

func stol

MPE documents

Complete PDF
Table of Contents
Index

E0201 Edition 4 ♥
E0300 Edition 3
E0692 Edition 3

Short to long. Converts a virtual address to a long pointer.

Syntax



   stol (virtaddr)

If the parameter virtaddr is a short pointer (SPTR), then it is converted based on the space registers for the current PIN.

If the parameter virtaddr is a already a long pointer (LPTR) or a code pointer (ACPTR or LCPTR), then the long pointer (portion) is simply returned.

Formal Declaration



   stol:lptr (virtaddr:ptr)

Parameters


virtaddr

The virtual address to be converted to a long pointer.

Virtaddr can be either a short or long pointer.

Examples



   $nmdebug > dr sr4; dr sr5
   sr4=$41
   sr5=$53

   $nmdebug > wl sp
   $40163088

   $nmdebug > wl stol(sp)
   $53.40163088

   $nmdebug > wl stol(1cbb8c)
   $41.1cbb8c

   $nmdebug > wl stol(15f.1cbb8c)
   $15f.1cbb8c

Limitations, Restrictions


none




func sptr


func stolog