Section 4: Programming 157

Editing Operations

You edit with the mode switch set to W/PRGM. The edit operations make it easier to key in programs because, in case of mistakes, you can correct a wrong step by (1) stepping through your program using SST until the wrong step is in the display, (2) pressing gDEL (delete program step) and by reentering the step correctly.
To insert an operation following the one on display, just key it in. Now you will be able to step through your program and insert a step between any two steps.

Revising a Program

Sample Case. To demonstrate the editing process, let us revise the default A function to calculate the factorial function instead of the reciprocal function. The desired function will be LBL A gn! RTN, which is identical to what is already in memory except for the fourth key. We need only delete the 1/x and insert n!.
Editing Procedure: Before we can delete 1/x, we must move the pointer to 1/x (code 04). Conceivably we could repeatedly press SST in W/PRGM mode. This would advance the pointer to the bottom of memory, through the top, and to the first location, etc. in circular fashion.