Guardian Procedure Calls Reference Manual

NOTE: There are additional considerations for privileged callers.
Returned Value
INT(32)
The last valid extended address in the segment indicated by seg. If either the segment is not
allocated, the segment is a flat segment, or there is a parameter error, a value of -1D is returned.
Example
LITERAL FEBOUNDSERR=22;
IF ADDR > LASTADDRX ( $HIGH(ADDR).<2:14> ) THEN
RETURN FEBOUNDSERR;
762 Guardian Procedure Calls (L)