Program Editing - 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

LISTIII
Program editing consists of changes, additions, or deletions in one or various lines,
or even rearranging the order of the program to allow for logical execution.
Program editing is performed by calling out each line using a LIST command.
The LIST command can be used in both the RUN mode and the WRT mode. When
used in the RUN mode, the program contents will be displayed and when used in the
WRT mode, it will permit program editing.
1. Program list display in the RUN mode
Operation:
10 INPUT A,S""
Displayed for approxi-
f - - - - - - - - - - - m a t e l y
:l
seconds (same
(LIST may be input by pressing
20
V=A+S
for
the
following)
IIlCDffilIl1D
or ~~lm.)
30
W=A-S
40 PR INT V,W
50 END
READY
P0
If you do not want to callout program lines from the beginning, designate the line
number where you would like to begin.
To list from line 30
Operation:
LIST
30111
30
W=A-S
40 PRINT V,W
50 END
READY PO
* During LIST command execution, each program line will be displayed sequentially,
If you want to stop in a particular Iine press the
~
Key.
To resume the LIST command, press the
III
Key.
2. Program change/addition/deletion in the WRT mode
Designate the WRT mode by pressing
iii
rn .
(l)Change
Each time the
1m
Key is pressed, one line will be displayed starting from the line which
was designated using the LIST command.
If the line number designation is omitted, the display will automatically begin from
the first line.
-34-

Advertisement

Table of Contents
loading

Table of Contents