pTAL Reference Manual (H06.08+)

Built-In Routines
HP pTAL Reference Manual523746-006
15-62
$LOCATESPTHDR
int-expression
is an unsigned INT expression.
$LOCATESPTHDR
$LOCATESPTHDR returns the address of the Segment Page Table (SPT).
headersize input
uINT:value
is the unsigned byte offset
from the beginning of the SPT to the beginning of
the header. Because the SPT header always precedes the SPT, headersize
is subtracted from the address of the SPT to obtain the address of the start of
the header.
virtaddr input
EXTADDR:value
is the address of the SPT.
sptbase output
EXTADDR:variable
is the address of the segment-page-table header associated with virtaddr.
Example 15-54. $LMIN Routine
INT intval := 3;
min := $LMIN (intval, 5); ! Return 3
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
$LOCATESPTHDR (
headersize
,
,
) ;
VST645.vsd
virtaddr
sptbase