Loops With Counters (Dse, Isg) - HP 32SII Owner's Manual

Rpn scientific calculator
Hide thumbs Also See for 32SII:
Table of Contents

Advertisement

Program lines:
Checksum and length: 6157 004.5
Checksum and length: 5FE1 013.5

Loops With Counters (DSE, ISG)

When you want to execute a loop a specific number of times, use the
(increment; skip if greater than). or
than or equal to) conditional function keys. Each time a loop function is
executed in a program, it automatically decrements or increments a counter
value stored in a variable. It compares the current counter value to a final
counter value, then continues or exits the loop depending on the result.
For a count–down loop, use
For a count–up loop, use
These functions accomplish the same thing as a FOR–NEXT loop in BASIC:
variable = initial–value
File name 32sii-Manual-E-0424
Printed Date : 2003/4/24
It is easier to recall A than to remember where it is in the
stack.
Calculates A – B.
Replaces old A with new result.
Recalls constant for comparison.
Is B < new A ?
Yes: loops to repeat subtraction.
No: displays new A.
variable
final–value
Size : 17 .7 x 25.2 cm
Description:
(decrement; skip if less
variable
increment
Programming Techniques 13–17

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents