beautypg.com

HP 33s User Manual

Page 168

background image

12–10

Simple Programming

2.

Press

{ V

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

{ V  

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

{ V

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.