Guardian Programming Reference Summary for pTAL and TAL

Procedure Calls Summary (R-Z)
Guardian Programming Reference Summary for pTAL and TAL522631-001
8-55
XSTACKTEST
(Superseded by HEADROOM_ENSURE_) Checks stack limits, ensures that adequate
stack space is available, and returns a set of constants to be used with the XBNDSTEST
procedure.
status := XSTACKTEST ( firstparm
,stackwords
,flags
,constants );
status, INT returned value
0 Adequate stack space available.
2 Undefined flags value.
21 The value of stackwords is less than 1.
22 Bounds error on firstparm or constants.
632 Insufficient stack space available.
firstparm, INT:ref:* input
stackwords, INT:value input
flags, INT:value input
<0:13> Must be zero.
<14> Allow parameters that use privileged addresses.
<15> Skip the stack test and return 0.
constants, FIXED:ref output