Stop Command (Stop); End Command (End); Execute Command (R Un) - 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-7 Multistatement
A multistatement is used to connect two or more commands using a
Example:
I
~
' I
(colon).
10
20
30
10
20
A=2
}
B= 1
e
10 A=2:B= 1e:C=50
C=50
PR I NT "NO." ;N; }
1
e
PR I NT "NO." ;N;: INPUT A
INPUT A
-
5-6-8
Stop
Command
• STOP statement
A STOP statement is a command to stop program execution temporarily. When a
program is stopped using this command, press the
lED
Key to resume program
execution.
Any number of STOP commands can be written in a program.
5-6-9 End Command
END
statement
An END statement is a command to terminate program execution. Program execution
cannot be resumed as it can with a STOP statement.
END statement is written at the end of a program. When a subroutine follows the main
program, be sure to write an END statement at the end of the main routine.
5-6-10 Execute Command
• RU
N command
A RUN command is used to execute a program. It cannot be used by writing it in a
program.
Format:
RUN (line number]
(Item in brackets may be omitted)
When followed by a line number, the program will start from that line number. If it is
omitted, the program will start from the initial line.
Example;
R UN
II.. ·
start from the beginning
RUN 20'.·········
start from line 20
RUN 55111···· .....
start from line 55
When the designated line number does not exist, execution will start from the line with
the next nearest line number.
-54-

Advertisement

Table of Contents
loading

Table of Contents