RETCOUNT


7.8.2, ANSI

 

The RETCOUNT instruction determines the number of entries in the return stack. The instruction uses the following format:

 

 

[label]

RETCOUNT

{count}

 

Where:

label

Optional. A Program Execution Label.

count

Required. A previously defined Numeric Variable that receives the number of entries on the call stack.

Flags Affected: OVER, ZERO

Note the following:

  1. If there are no entries on the return stack the ZERO flag is set.

  2. If value of the number of entries is truncated when moving to {count}, the OVER flag is set.

 

 

See Also: Example Code, CALL, RETURN, NORETURN, Program Control Instructions

 



PL/B Language Reference PROCEDURE RETURN