Executing A Program One Line At A Time - HP -10C Owner's Handbook Manual

Hide thumbs Also See for HP-10C:
Table of Contents

Advertisement

For example, assuming the calculator is still in Program mode, you can set it to
program line 00 as follows:
Keystrokes
t.00

Executing a Program One Line at a Time

Pressing  repeatedly with the calculator in Program mode (as described
earlier) enables you to verify that the program you have stored is identical to the
program you wrote—that is, to verify that you have keyed the instructions in
correctly. However, this does not ensure that the program you wrote calculates
the desired results correctly: even programs created by the most experienced
programmers often do not work correctly when they are first written.
To help you verify that your program works correctly, you can execute the
program one line at a time, using the  key. Pressing  while the
calculator is in Run mode advances the calculator to the next line in program
memory, then displays that line's number and the keycode of the instruction
stored there, just as in Program mode. In Run mode, however, when the Â
key is released the instruction in the program line just displayed is executed and
the display then shows the result of executing that line. (You can retain the
program line information by holding the  key down.)
For example, to execute the program stored in the calculator one line at a time:
Keystrokes
¥
35.7
Â
Â
Section 5: Programming Basics
Display
00-
Display
39.7400
35.7
01-
36
35.7000
02-
1
1.
Program line 00.
Sets calculator to Run
mode and to line 00 in
program memory.
(Display shown assumes
results remain from
previous calculation.)
Keys in temperature of
water bath (degrees
Celsius).
Program line 01:
v.
Result of executing
program line 01.
Program line 02: 1.
Result of executing
program line 02.
65

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents