A SERVICE OF

logo

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.