Programming; Lookingataprogram - HP -65 Owner's Handbook Manual

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

Advertisement

Section 4
Programming
In the Introduction you learned to run a prerecorded program
and to create a simple program. You have since explored the
preprogrammed abilities of the calculator. This section provides
the information for creating more ambitious programs, com-
parable in scope to the recorded programs in the Standard Pac
and other pacs. You are encouraged to create and use your own
programs even though you otherwise take full advantage of your
calculator's power by merely using prerecorded programs. We
think you will find it as exciting as it has been for us.
To create a program, you need to:
. Define the problem.
. Work out the keystroke sequence that solves the problem.
. Add control operations for automatic execution.
. Key the keystroke sequence, including control operations,
into program memory.
. Edit, verify, and record the sequence for later use.
. Run the sequence, automatically, with your data.
To key a program into the machine, press the successive keys
with the switch in W/PRGM position. Then, by passing an un-
protected magnetic card through the right lowerslot of the cal-
culator, you can save the program (contents of the 100-step pro-
gram memory) for future use.
The subject is discussed under four major headings:
* Look-
ing at a Program.
= The Control Operations needed in pro-
grams to start, to repeat, and to stop. ® The Editing Operations
that allow you to correct and change programs in memory. =
Test Operations that allow your program to make decisions.
Looking at a Program
Quite obviously, it is not possible to see the entire program at
once; you see one step at a time as determined by the program
pointer (defined in Figure 4-1). Recall that program memory
48

Advertisement

Table of Contents
loading

Table of Contents