Look at the general rules at the beginning of this section. Now you
can choose one of the three alternatives described in step 4.
For this example, press
repeatedly until the
appears, indicating that FIB2 is completed. (These single-steps not
The calculation for F} executes only the THEN clause in FIB2.
For the second example, execute 3 F I 82 and single-step through
the calculation for F
This executes the ELSE clause, including the
START ... NEXT loop. You'll see that, for
3, the START ...
NEXT loop is executed twice.
For the third example, suppose you want to single-step the START ...
NEXT loop as a whole-seeing the stack before each iteration of the
loop, but not single-stepping all the steps in FIB2 or in the loop itself.
To do so, move the HALT command inside the loop. Then FIB2 won't
halt until it reaches the loop, and you can use
execute the loop one iteration at a time.
Use VISIT to return FIB2 to the command line.
Use the cursor menu keys to delete HALT. Then insert HALT as
shown (following the START command).
Store the edited version of FIB2.
IF n 1
ELSE 0 1 2
START HALT .DUP
Start the calculation for F
FIB2 will halt before performing the loop.
IL ____ .JI
28: Programming Examples