Owner's Manual
60
Example:
30 PRINT CHR$(68)
RUN
D
GOSUB...RETURN
Line# GOSUB first line number of subroutine.
Line#
Line#
Line#
Line# first line number of subroutine
Line#
Line# RETURN
The GOSUB command tells the computer to GOTO another line number. After the process
has been completed, a RETURN statement is used to send the computer back to the line
immediately after the GOSUB. These statements are used to process a series of commands
that are frequently used.
Example:
30 GOSUB 120
.
.
other program lines
.
.
120 PRINT "WELCOME TO THE"
130 PRINT "PRECOMPUTER PRESTIGE"
140 RETURN