pTAL Conversion Guide

pTAL Built-In Routines
pTAL Conversion Guide527302-002
18-33
$LOCATESPTHDR
$LOCATESPTHDR
$LOCATESPTHDR provides 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 extended memory address of the SPT.
Example 18-22. Call to $INTERROGATEIO Routine
INT select;
INT rank_channel;
INT ric_interrupt_status;
INT rist_interrupt_cause;
INT channel_status;
$INTERROGATEIO(select, rank_channel, ric_interrupt_status,
rist_interrupt_status, channel_status);
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