The Complete Program; Loadingaprogram - HP -11C Owner's Handbook Manual

Hide thumbs Also See for HP-11C:
Table of Contents

Advertisement

Section 5: Programming Basics
85
The Complete Program
The complete program to calculate the area of any circle given its
radius is:
Assigns name to and defines beginning of program.
Squares the radius you input (stack does not lift or
drop).
Summons 7 into the display (stack lifts).
Multiplies the squared radius by = (stack drops) and
displays answer.
(g](RTN]
Defines end of program; calculator returns to line 000
and halts.
Loading a Program
A program can be loaded in memory ahead of or after other
programs already in memory. If a new program is loaded ahead of
an existing program (by going to line 000 and keying in the new
instructions), the existing program will be bumped downward in
memory, one line at a time, as you key in the new program's
instructions.
To prepare for loading the preceding Area of a Circle program:
1.
Press
to toggle into Program mode. The PRGM
annunciator will appear in the display.
2.
Press
[f]CLEAR
to clear program memory of previous,
unwanted programs. (If you want to save a program already
in the calculator, press
(-] 000 instead of
CLEAR
(PRGM].
(-] 000 sets the calculator to line 000 without
affecting the contents of program memory.)
You can tell that the calculator is at the top of program memory
because the digits 000 appear at the left of the display.
The keys you press to load the program to calculate the area of a
circle are:
(9)&)
(9](RTN]
Press the first key, [f], of the program.

Advertisement

Table of Contents
loading

Table of Contents