Section 7: Programming Basics; The Mechanics; Creatinga Program; Loadingaprogram - HP -16C Owner's Handbook Manual

Table of Contents

Advertisement

Section 7
Programming Basics
The next three sections are dedicated to explaining aspects of
programming the HP-16C. These programming sections will first
discuss basic techniques (The Mechanics), then give example(s) for
the implementation of these techniques, and lastly discuss any
details of operation (Further Information). This allows you to read
only as far as you need to support your use of the HP-16C.
The Mechanics
Creating a Program
Programming the HP-16C is an easy matter, based simply on
recording the keystroke sequence used when calculating manually.
(This is called "keystroke programming.") To create a program out
of a series of calculation steps requires two extra manipulations:
deciding where and how to enter your data; and loading and
storing the program. In addition, programs can be designed to
make decisions and perform iterations through conditional and
unconditional branching.
Stepping through the fundamentals of programming, we'll work
through a program designed to concatenate two 16-bit words in the
X- and Y-registers into one 32-bit word in the X-register.
Loading a Program
Program Mode. Press [d]
(program/run) to set the
calculator to Program mode (PRGM
annunciator on). Most
functions are stored and not executed when keys are pressed in
Program mode.
Keystrokes
Display
(g](P/R]
000-
Switches to Program
mode; PRGM
annunciator and line
number displayed.
72

Advertisement

Table of Contents
loading

Table of Contents