HP HP12C hp 12c_user's guide_English_E_HDPMBF12E44.pdf - Page 101

Stopping Program Execution Automatically., Example, Keystrokes, Display

Page 101 highlights

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 fs fCLEARÎ § t ?+1 :0 b t ?+2 + ?+3 fs fCLEAR² 13\68.5 t t t 18\72.9 t t t Display 00000102- 03- 44 40 04- 45 05- 06- 07- 44 40 0809- 44 40 6,370.52 0.00 68.5 890.50 60.11 950.61 72.9 1,312.20 88.57 1,400.77 Sets calculator to Program mode. Clears program memory. 20 31 Stops program execution to display AMOUNT. 1 0 25 31 Stops program execution to display TAX. 2 40 3 Sets calculator to Run mode. Clears registers R through R . 1 6 First item. AMOUNT for first item. TAX for first item. 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

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42
  • 43
  • 44
  • 45
  • 46
  • 47
  • 48
  • 49
  • 50
  • 51
  • 52
  • 53
  • 54
  • 55
  • 56
  • 57
  • 58
  • 59
  • 60
  • 61
  • 62
  • 63
  • 64
  • 65
  • 66
  • 67
  • 68
  • 69
  • 70
  • 71
  • 72
  • 73
  • 74
  • 75
  • 76
  • 77
  • 78
  • 79
  • 80
  • 81
  • 82
  • 83
  • 84
  • 85
  • 86
  • 87
  • 88
  • 89
  • 90
  • 91
  • 92
  • 93
  • 94
  • 95
  • 96
  • 97
  • 98
  • 99
  • 100
  • 101
  • 102
  • 103
  • 104
  • 105
  • 106
  • 107
  • 108
  • 109
  • 110
  • 111
  • 112
  • 113
  • 114
  • 115
  • 116
  • 117
  • 118
  • 119
  • 120
  • 121
  • 122
  • 123
  • 124
  • 125
  • 126
  • 127
  • 128
  • 129
  • 130
  • 131
  • 132
  • 133
  • 134
  • 135
  • 136
  • 137
  • 138
  • 139
  • 140
  • 141
  • 142
  • 143
  • 144
  • 145
  • 146
  • 147
  • 148
  • 149
  • 150
  • 151
  • 152
  • 153
  • 154
  • 155
  • 156
  • 157
  • 158
  • 159
  • 160
  • 161
  • 162
  • 163
  • 164
  • 165
  • 166
  • 167
  • 168
  • 169
  • 170
  • 171
  • 172
  • 173
  • 174
  • 175
  • 176
  • 177
  • 178
  • 179
  • 180
  • 181
  • 182
  • 183
  • 184
  • 185
  • 186
  • 187
  • 188
  • 189
  • 190
  • 191
  • 192
  • 193
  • 194
  • 195
  • 196
  • 197
  • 198
  • 199
  • 200
  • 201
  • 202
  • 203
  • 204
  • 205
  • 206
  • 207
  • 208
  • 209
  • 210
  • 211

Section 8: Programming Basics
101
File name: hp 12c_user's guide_English_HDPMBF12E44
Page: 101 of 209
Printered Date: 2005/7/29
Dimension: 14.8 cm x 21 cm
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
00-
Sets calculator to Program mode.
f
CLEAR
Î
00-
Clears program memory.
§
01-
20
t
02-
31
Stops program execution to display
AMOUNT.
?+
1
03- 44
40
1
:
0
04-
45
0
b
05-
25
t
06-
31
Stops program execution to display
TAX.
?+
2
07- 44
40
2
+
08-
40
?+
3
09- 44
40
3
fs
6,370.52
Sets calculator to Run mode.
f
CLEAR
²
0.00
Clears registers R
1
through R
6
.
13
\
68.5
68.5
First item.
t
890.50
AMOUNT for first item.
t
60.11
TAX for first item.
t
950.61
TOTAL for first item.
18
\
72.9
72.9
Second item.
t
1,312.20
AMOUNT for second item.
t
88.57
TAX for second item.
t
1,400.77
TOTAL for second item.