HP (Hewlett-Packard) HP 33s Calculator User Manual


 
12–10 Simple Programming
File name 33s-English-Manual-040130-Publication(Edition 2).doc Page : 388
Printed Date : 2004/1/30 Size : 13.7 x 21.2 cm
2. Press
¹
r
label to set the program pointer to the start of the program
(that is, at its LBL instruction). The

instruction moves the program pointer
without starting execution. (If the program is the first or only program, you can
press
¹
r
Ë
Ë
to move to its beginning.)
3. Press and hold
Ø
. 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
×
. 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
Ø
or
×
simply changes the program
pointer, without executing lines. Holding down a cursor 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:
(In RPN mode)
Display: Description:
5
¹
r
A

Moves program counter to label A.
Ø
(hold)
(release)




Ø
(hold)
(release)


Squares input.
Ø
(hold)
(release)

π

Value of
π
.
Ø
(hold)
(release)



25
π
.
Ø
(hold)
(release)



End of program. Result is correct.