Further Information; Programlabels - HP -16C Owner's Handbook Manual

Table of Contents

Advertisement

80
Section 7: Programming Basics
Keystrokes
Display
Returns to Run mode (no
PRGM annunciator).
Display shows last
result.
0
Sets word size 64, the
largest possible word
size.
[fJ]SET COMPL[UNSGN]
10000000 00000000
00000000 .d
0000
0
00000000 .d
Stores 10'?in Ry,
12345678987654
78987654 .d
Enters the two numbers
to be multiplied.
987654321234567
21234567 .d
(GsB]1
19326320 .d
Executes program
1
12 d. } labeled "1"; resulting
productis in X- and Y-
registers. Most
significant word is
1,219,326,320.
(xxy]
31035818 .d
Least significant word
(f)[(WINDOW] 1
12676360 .d. } (19 digits) 0,731,267,
(1) [WINDOW) 2
73 d.
636,031,035,818. Exact
/
answer is 12,193,263,
Leading zero
200,731,267,636,031,
suppressed.
035,818,,.
To repeat the program with different values for the multiplicands,
just place those numbers in the X- and Y-registers and press
1.
(Flag 4 is set during execution of this program because the
operation leaves a remainder not equal to zero. However, this is of
no significance because the program calculates the remainder in
line 009.)
Further Information
Program Labels
Labels in a program (or subroutine) are markers telling the
calculator where to begin execution. There are 16 possible labels

Advertisement

Table of Contents
loading

Table of Contents