pTAL Reference Manual (H06.08+)
Built-In Routines
HP pTAL Reference Manual—523746-006
15-80
$READCLOCK
$READCLOCK
$READCLOCK returns the current setting of the system clock as a FIXED value.
$READSPT
$READSPT returns (copies) an entry from the Segment Page Table (SPT).
virtaddr input
EXTADDR:value
is the virtual address of the SPT entry to copy.
pTAL privileged procedure No
Can be executed only by privileged procedures No
Sets condition code No
Sets $CARRY No
Sets $OVERFLOW No
Example 15-76. $READCLOCK Routine
FIXED the_time;
the_time := $READCLOCK; ! Return current clock time
Note. The EpTAL compiler does not support this procedure.
pTAL privileged procedure No
Can be executed only by privileged procedures Yes
Sets condition code No
Sets $CARRY Yes
Sets $OVERFLOW No
VST108.vsd
$READCLOCK
( ,
)
VST650.vsd
$READSPT
virtaddr sptentryaddr










