|
|
|
Section 4: Programming 156
|
|
R/S RUN STOP.
|
|
If R/S is keyed in and a stored program is not executing, the stored program
starts executing at the step denoted by the program pointer.
|
|
|
If executed in a stored program, R/S stops the program displaying the
X-register and allowing keystrokes from the operator.
|
|
|
If a R/S in a program is immediately preceded by a numerical entry from the program,
the automatic lift is disabled upon return to the keyboard. This allows a program to
display prompting information that will not be lifted in the stack if you enter a
number from the keyboard. Except for this case, R/S does not affect the stack lift.
|
|
|
In a program, R/S must have an ENTER separating the R/S from succeeding digit keys.
|
|
|
GTO Go to (prefix). When followed by a digit (0, . . . , 9) or a letter
(A, . . . , E), GTO advances the program pointer to the first occurrence
of the corresponding program label (i.e., LBL followed by the same digit or letter).
|
|
|
|
Figure 4-3. Control Operations for Stopping and Branching
|
|
The function programming sequence of LBL, . . . , RTN was not used. The method shown conserves
function labels, using GTO instead. By this method you could still define all five top row key
functions. keeping all six programs in memory simultaneously (within the 100 step limit).
|
|
Running the Program
|
|
Switch to RUN mode and
|
|
Press
|
|
See Displayed
|
|
Comment
|
|
RTN R/S
|
|
|
|
Start program at top of memory.
|
|
5 ENTER 2 R/S
|
|
|
|
5 × 2 × .85
|
|
7 ENTER 4 R/S
|
|
|
|
7 × 4 × .85 + 8.50
|
|
8 ENTER 5 R/S
|
|
|
|
8 × 5 × .85 + 32.30
|
|
22 ENTER 6 R/S
|
|
|
|
22 × 6 × .85 + 66.30
|
|
|
|
|