HP 32SII User Manual

Page 208

Advertising
background image

13–18 Programming Techniques

File name 32sii-Manual-E-0424
Printed Date : 2003/4/24 Size : 17.7 x 25.2 cm

.

.

.

%!

variable

A DSE instruction is like a FOR–NEXT loop with a negative increment.

After pressing a shifted key for ISG or DSE (

z

k

or

{

m

), you

will be prompted for a variable that will contain the loop–control number
(described below).

The Loop–Control Number

The specified variable should contain a loop–control number ±ccccccc.fffii,
where:

±ccccccc is the current counter value (1 to 12 digits). This value changes

with loop execution.

fff is the final counter value (must be three digits). This value does not

change as the loop runs.

ii is the interval for incrementing and decrementing (must be two digits or

unspecified). This value does not change. An unspecified value for ii is
assumed to be 01 (increment/decrement by 1).

Given the loop–control number ccccccc.fffii, 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 cccccccc with fff, and makes program
execution skip the next program line if this ccccccc

> fff.

Advertising