HP -32S Owner's Manual page 104

Rpn scientific calculator
Table of Contents

Advertisement

Given the loop-control number cccccccfffii, DSE decrements ccccccc to
ccccccc —ii, compares the new ccccccc with fff, and makes program
execution skip the next program line if this ccccccc < fff.
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.
If current value
> final value,
continue loop.
If current value
< final value,
continue loop.
W01
LBL
N
W09
DSE
W10
GTO
Mil
XEQ
X
X <*—I
U01
LBL
W
W09
ISG
W10
GTO
Wll
XEQ
X<3—I
If current value «s final
value, exit loop.
If current value > final
value, 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.
L01
LBL
L02
1.01
L03 STO
M01
LBL
M02
ISG
M03
GTO
M04
RTN
Press 111 view IZ to see that the loop-control number is now 11.0100.
102
6: Programming Techniques

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents