Program Execution - Radio Shack TRS-80 PC-4 Owner's Manual

Trs-80 pc-4
Hide thumbs Also See for TRS-80 PC-4:
Table of Contents

Advertisement

sure to use it to clearly designate the end location .
The spacing between the line numbers and commands and between commands and
operands, facilitates reading the display. In BASIC language the spacing has no
special meaning (except for a PR INT statement message) and may normally be
omitted .
In this program, line n'umbers have been divided into increments of 10 but they may
be freely used within
a
range of
1
through
9999.
However, it is more convenient for
subsequent addition/insertion if they are divided into increments of 10.
Since program execution is performed in sequence from lower numbers to higher
numbers, use line numbers in the desired execution sequence.
To clear the program in one program area, use
a
CLEAR command. To clear all the
programs in areas P0 through P9, use a CLEAR A command.
5-3-2 Program Execution
Program execution is performed in the RUN mode. (Press l!il[@) and "RUN" will be
displayed.)
There are 2 methods for executing a program which has been written.
1. Program execution method
CD
Execution using program area designation
For this method, execution begins as soon as the program area is designated.
~
{ !}
(Press
~
then press the desired program area.J
Example:
To start the program in the previous example
Operation:
ff!illJ
~
RUN mode
!
(omitted hereafter)
~
I
?
* This "? " is displayed because an
INPUT statement is written in the
program as the first step.
®
Execution using a RUN command
RUN
lID
("RUN" may be input by pressing either
001]]00.
or ~cID
lED .)
*
When performing Execution using a RUN command as in the previous example, a
") " is displayed. When the program is in an input await condition,
"? "
will not
be released even if
mB
is pressed. You must press
~~
then perform operation
®
to re-input data.
Also, to begin execution in the middle of the program, input the desired Iine number
after the RUN command and press the
lID
Key.
-32- .

Advertisement

Table of Contents
loading

Table of Contents