pTAL Conversion Guide

pTAL Built-In Routines
pTAL Conversion Guide527302-002
18-40
$READSPT
$READSPT
$READSPT makes a copy of an entry from the Segment Page Table (SPT). Both the
SPT and the copy are in extended memory.
virtaddr input
EXTADDR:value
is the virtual extended memory address of the SPT entry to copy.
sptentryaddr output
EXTADDR:variable
is the extended memory address at which $READSPT stores the SPT entry.
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
Figure 18-17. TAL Code Equivalent to $READSPT Routine
STACK virtaddr;
CODE(RSPT);
STORE sptentry;
Example 18-28. Call to $READSPT Routine
EXTADDR virtual_addr;
INT .EXT spt_entry(spt_template) := spt_entry_addr;
$READSPT(virtual_addr, @spt_entry);
( ,
)
VST650.vsd
$READSPT
virtaddr sptentryaddr