209
210
211
212
213
214
215
216
217
218
219
220
221
HP-41C Handbook
Fold Out
Contents
Introduction
Getting Started
Display Control
Memory Stack
HP-41C Functions
Storing Recalling
Functions
Functions cont.
Programming
Program Editing
Prg Interruptions
Prg with ALPHA
Branch. Looping
Subroutines
Ind. Operations
Flags
Flags cont.
A
-
B
-
C
-
D
-
E
-
F
-
G
Index
Function Index
Back Label
221
©Hewlett-Packard
Section 14: Flags
221
Keystrokes
Display
g
X=Y?
27 X = Y ?
Is input same as stored letter?...
g
GTO
03
28 GTO 03
...yes, goes to
LBL
03.
g
ISG
02
29 ISG 02
Increments R
02
...
g
GTO
02
30 GTO 02
...goes to
LBL
04 if number is less than or equal to 15, and...
g
RTN
31 RTN
...stops if it is greater than 15.
g
LBL
03
32 LBL 03
Displays the integer portion of the loop control number. It is the same as the decimal value of the letter stored in that indirect address.
RCL
02
33 RCL 02
XEQ
ALPHA
INT
ALPHA
34 INT
g
GTO
·
·
00 REG 35
Now assign the program to the
Σ+
key for execution in USER mode.
Keystrokes
Display
PRGM
0.0000
g
ASN
ASN _
ALPHA
HEX
ALPHA
ASN HEX _
Σ+
ASN HEX 11
0.0000
Run HEX in USER mode to convert the following single-digit hexadecimal integers to their decimal equivalents: 1, B, 9, F.
Keystrokes
Display
USER
0.0000
HEX
(
Σ+
)
INPUT?
1
R/S
1.0000
The decimal equivalent of hexadecimal 1.
HEX
INPUT?
ALPHA
B
ALPHA
R/S
11.0000
Hexadecimal B equals decimal 11.
HEX
INPUT?
9
R/S
9.0000
HEX
INPUT?
ALPHA
F
ALPHA
R/S
15.0000