pTAL Conversion Guide

pTAL Built-In Routines
pTAL Conversion Guide527302-002
18-39
$READBASELIMIT
identifier
is either a procedure address (that is, @procedure-name ) or an INT(32)
expression.
$READBASELIMIT
$READBASELIMIT returns the base and limit of the current extended segment.
xbase output
INT(32):variable
is the base address of the current extended segment.
xlimit output
INT(32):variable
is the limit of the current extended segment.
Consult the system description manual for your system for the format in which the base
and limit values are returned.
Note. The EpTAL compiler does not support this procedure.
pTAL privileged procedure Yes
Can be executed only by privileged procedures Yes
Sets condition code No
Sets $CARRY No
Sets $OVERFLOW No
Figure 18-16. TAL Code Equivalent to $READBASELIMIT Routine
CODE(RXBL);
STORE xlimit, xbase;
Example 18-27. Call to $READBASELIMIT Routine
INT(32) xbase;
INT(32) xlimit;
$READBASELIMIT(xbase, xlimit);
( )
VST649.vsd
,$READBASELIMIT xbase
xlimit