List Command (List) - 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

5-6-11 List Command
LIST command
A LI ST command is used to display the program contents. It can be used in both the
"R UN" mode and the "WRT" mode.
Format: LIST [line number]
LIST A
(Item in brackets may be omitted)
(WRT mode)
When followed by a line number, the program will be displayed in sequence starting
from the designated line number of the currently designated program area. When no
line number is designated, display will be made from the beginning of the program.
In the case of "L1ST A", this is a command to display the programs in all program areas.
It displays program contents sequentially from P0 through PH. This command cannot be
used by writing it in a program.
When performed in the "R UN" mode, the program contents will be displayed
sequentially from the designated line. However, when performed in the "WRT" mode,
one line is displayed each time the
lEI
Key is pressed.
Example:
(RUN mode)
LIST.
10 A=0
20
INPUT
B
30
A=A+B
40
GOTO
20
,LIST 20Dl
III
III
20 INPUT B_
30 A=A+B_
40 GOTO 20_
Also, if performed in the "WRT" mode, program editing (refer to page 34) is possible.
5-6-12 Mode Designation
• MODE command
The MODE command is used to designate the angular unit or printer output condition
in a program.
Format: MODE
n
(n;::
4 through 8l
MODE 4
MODE
5
MODE
6
MODE
7
MODE 8
"DEG "
designation ]
"RAD"
designation
angular unit designation
"GRA"
designation
PR INT mode designation
PR INT mode release
This MODE command is the same as the designation which is performed by pressing the
~
Key during manual operation.
-55-

Advertisement

Table of Contents
loading

Table of Contents