Given the loop–control number ccccccc.fffii, ISG increments ccccccc to ccccccc + ii, compares the new ccccccc with fff, and makes program execution skip the next program line if this ccccccc > fff.

 

M€

$  $

 

 

 

 

.

 

 

 

 

.

 

 

If current value >

 

.

€N

If current value

 

$   

final value, continue

M

final value,

$ ! $

 

loop.

 

$ % %

N

exit loop.

 

 

 

 

 

.

 

 

 

 

.

 

 

 

 

.

 

 

 

M€

$  $

 

 

 

 

.

 

 

 

 

.

 

 

If current value

 

.

€N

If current value

 

$   

final value, continue

M

> final value,

$ ! $

 

loop.

 

$ % %

N

exit loop.

 

 

 

 

 

.

 

 

 

 

.

 

 

 

 

.

 

 

For example, the loop–control number 0.050 for ISG means: start counting at zero, count up to 50, and increase the number by 1 each loop.

The following program uses ISG to loop 10 times. The loop counter (0000001.01000) is stored in the variable Z. Leading and trailing zeros can be left off.

    )  ! '       '  !   !

Press ŠZ to see that the loop–control number is now 11.0100.



Programming Techniques 13–19