Deleting Programlines; Inserting Programlines - HP -16C Owner's Handbook Manual

Table of Contents
Section 8: Program Editing
83
Deleting Program Lines
Deletions of program instructions are made with [BSP](back space)
in Program mode. Move to the line you want to delete, then press
(BSP]. All subsequent program lines will be renumbered to stay in
sequence.
Pressing
in Run mode does not affect program memory, but is
used for display clearing. (Refer to page 17.)
Inserting Program Lines
Additions to a program are made by moving to the line preceding
the point of insertion. Any instruction you key in will be added
following the line currently in the display. To alter or replace an
instruction, first delete it, then add the new version.
If all memory space is occupied, the calculator will not accept any
program instruction insertions, and Error 4 will be displayed.
Example
The description below uses the concatenation program (from page
74, section 7) to illustrate the editing features of the HP-16C. First
we'll change the given word size from 32 (20,4) to 8 (8;¢), then
single-step through the revised program to monitor its execution.
The editing process is diagrammed below. The given line numbers
assume that this program occupies lines 001 to 010 in memory.
Original Version
001-[g]{LBLJA
002-
003-2
004-0
005-
006-[9][LSTx]
007-
008-
009-
010-[9](RTN]
— replace —»
__/
__/
Edited Version
001-[g][LBLJA
002-
003-8
004~
005-[9][LSTx]
006- (f](SR]
007~ (f)(RLn]
008-
009-[9][RTN]
Table of Contents
loading

Table of Contents