Section 8:
Section 8:
Section 8:
Section 8: Programming Basics
Programming Basics
Programming Basics
Programming Basics
91
91
91
91
File name: HP 12c+_user's guide_English_E_HDP0F12AE03_062608 - Modified.doc
Page: 91 of 213
Printed Date: 2021/6/16
Dimension: 14.8 cm x 21 cm
Identifying Instructions in Program Lines
Identifying Instructions in Program Lines
Identifying Instructions in Program Lines
Identifying Instructions in Program Lines
Each key on the hp 12c keyboard — except for the digit keys 0 through 9 — is
identified by a two-digit “keycode” that corresponds to the key’s position on the
keyboard. The first digit in the keycode is the number of the key row, counting
from row 1 at the top; the second digit is the number of the key in that row,
counting from 1 for the first key in the row through 9 for the ninth key in the row
and 0 for the tenth key in the row. The keycode for each digit key is simply the
digit on the key. Thus, when you keyed the instruction
b
into program memory,
the calculator displayed
04– 25
This indicates that the key for the instruction in program line 04 is in the second
row on the keyboard and is the fifth key in that row: the
b
key. When you keyed
the instruction
+
into program memory, the calculator displayed
07– 40
This indicates that the key for the instruction in program line 07 is in the fourth row
on the keyboard and is the tenth key in that row: the
+
key. When you keyed the
digit 5 into program memory, the keycode displayed was only the digit 5
5
5
5.
Since keystroke sequences beginning with
f
,
g
,
?
,
:
, and
(
are stored
in only one program line, the display of that line would show the keycodes for all
the keys in the keystroke sequence.
Instruction
Instruction
Instruction
Instruction
Keycode
Keycode
Keycode
Keycode
gÒ
nn- 43
26
?+
1
nn- 44 40 1
g(
00
nn- 43,33
00
Summary of Contents for 0012C-90001
Page 1: ...hp 12c financial calculator user s guide H Edition 5 HP Part Number 0012C 90001 ...
Page 14: ......
Page 15: ...Part I Part I Part I Part I Problem Solving Problem Solving Problem Solving Problem Solving ...
Page 86: ......
Page 87: ...Part II Part II Part II Part II Programming Programming Programming Programming ...
Page 123: ...Part III Part III Part III Part III Solutions Solutions Solutions Solutions ...
Page 169: ...Appendi Appendi Appendi Appendixes xes xes xes ...