Stopping Program Execution. HP 12C Financial Programmable Calculator, 12c - F2230A, 12C#ABA - 12C Financial Calculator, 12C - 12c Financial Calculator, 12c
تبلیغات
تبلیغات
Section 8: Programming Basics 101
If the duration of the pause is not long enough to write down the number displayed, you can prolong it by using more than one u instruction. Alternatively, you can have the program automatically stop as described next.
Stopping Program Execution
Stopping Program Execution Automatically. Program execution is automatically halted when the program executes a t instruction. To resume executing the program from the program line at which execution was halted, press t.
Example: Replace the program above by one containing t instructions instead of u instructions.
Keystrokes Display fs fCLEARÎ
§ t
?+1
:0 b t
?+2
+
?+3 fs fCLEAR²
13\68.5 t t t
18\72.9 t t t
00- Sets calculator to Program mode.
00-
01-
Clears program memory.
02-
Stops program execution to display
AMOUNT.
03- 44 40 1
45 0
05-
06- Stops program execution to display
TAX.
07- 44 40 2
08-
09- 44 40 3
6,370.52
Sets calculator to Run mode.
0.00
Clears registers R
1
through R
6
.
68.5 First item.
890.50
AMOUNT for first item.
60.11 TAX for first item.
950.61
72.9
1,312.20
88.57
1,400.77
TOTAL for first item.
Second item.
AMOUNT for second item.
TAX for second item.
TOTAL for second item.
File name: hp 12c_user's guide_English_HDPMBF12E44
Printered Date: 2005/7/29
Page: 101 of 209
Dimension: 14.8 cm x 21 cm
102 Section 8: Programming Basics
Keystrokes Display
24\85 t t
85.
2,040.00
137.70
Third item.
AMOUNT for third item.
TAX for third item. t 2,177.70
TOTAL for third item.
345.
Fourth item. 5\345 t t
1,725.00
116.44
AMOUNT for fourth item.
TAX for fourth item. t 1,841.44
TOTAL for fourth item.
:1 5,967.70
Sum of AMOUNT column.
:2
:3
402.82
6,370.52
Sum of TAX column.
Sum of TOTAL column.
Program execution is also automatically halted when the calculator overflows (refer to page 73) or attempts an improper operation that results in an Error display.
Either of these conditions signifies that the program itself probably contains an error.
To determine at which program line execution has halted (in order to locate the error), press any key to clear the Error display, then press fs to set the calculator to Program mode and display that program line.
You may also want to display the current program line (by pressing fs) if your program has halted at one of several t instructions in your program and you want to determine which one that is. To continue executing the program afterward:
1. Press fs to set the calculator back to Run mode.
2. If you want to resume execution from the program line at which execution halted rather than from line 00, press gi followed by two digit keys that specify the program line desired.
3. Press t to resume execution.
Stopping Program Execution Manually. Pressing any key while a program is running halts program execution. You may want to do this if the calculated results displayed by a running program appear to be incorrect (indicating that the program itself is incorrect).
To halt program execution during a pause in a running program (that is, when u is executed), press any key.
After stopping program execution manually, you can determine at which program line execution has halted and/or resume program execution as described above.
File name: hp 12c_user's guide_English_HDPMBF12E44
Printered Date: 2005/7/29
Page: 102 of 209
Dimension: 14.8 cm x 21 cm
دانلود
تبلیغات
ویژگیهای کلیدی
Financial Pocket Black, Silver
10 digits
Memory registers: 20