Endinga Program; The Complete Program - HP -67 Owner's Handbook Manual

Hide thumbs Also See for HP-67:
Table of Contents

Advertisement

134
Simple Programming
Ending a Program
To define the end of a program, you should use an (3
(return)
instruction. When the calculatoris executing a program and encoun-
ters a
instruction in program memory, it stops (unless executed
as part of a subroutine—more about subroutines later). For example,
if the calculator were executing a program that had begun with
[&, when it encountered B3 RTN), it would stop. Another instruction
that will cause a running program to stop is (R/S). When a running
program executes a
instruction in program memory, it stops just
as it does when it executes (RTN. Good programming practice,
however, dictates that you normally use (3
rather than
to
define the end of your program.
The Complete Program
The complete program to solve for the area of any circle given its
radius is now:
o
3
Assigns name to and defines beginning of program.
a
Squares the radius.
0
Summons pi into the display.
]
Multiplies r2 by 7 and displays the answer.
Q
Defines the end of and stops the program.
Loading a Program
You load a program into the calculator in either of two ways:
1. By passing a magnetic card containing program instructions
through the card reader with the W/PRGM-RUN switch
wipRGM [l run set to RUN.
2. By setting the W/PRGM-RUN switch wrram [[[[IllRUN to
W/PRGM (program) and pressing the keys from the keyboard in
the natural order you would press them to solve a problem
manually.

Advertisement

Table of Contents
loading

Table of Contents