HP (Hewlett-Packard) 32SII Calculator User Manual


 
12–10 Simple Programming
File name 32sii-Manual-E-0424
Printed Date : 2003/4/24 Size : 17.7 x 25.2 cm
only program, you can press
z
U
to move to its
beginning.)
3. Press and hold
z
. This displays the current program line. When
you release
, the line is executed. The result of that execution is then
displayed (it is in the X–register).
To move to the preceding line, you can press
z
. No execution
occurs.
4. The program pointer moves to the next line. Repeat step 3 until you find an
error (an incorrect result occurs) or reach the end of the program.
If Program–entry mode is active, then
z
or
z
simply changes
the programs pointer, without executing lines. Holding down an arrow key
during program entry makes the lines roll by automatically.
Example:
Testing a Program.
Step through the execution of the program labeled A. Use a radius of 5 for
the test data. Check that Program–entry mode is not active before you start:
Keys: Display: Description:
5
z
U
A
)
Moves program counter to label A.
z
(hold)
(release)



)
z
(hold)
(release)

º
)
Squares input.
z
(hold)
(release)

π
)
Value of
π
.
z
(hold)
(release)

º
)
25
π
.
z
(hold)
(release)

!
)
End of program. Result is correct.