EasyManuals Logo

Radio Shack TRS-80 PC-4 User Manual

Radio Shack TRS-80 PC-4
72 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #54 background imageLoading...
Page #54 background image
FOR
1=1
TO
5
STEP1
FOR J
=2
TO
2m
STEP
2
x
~
NEXT
I
This kind
of
FOR-NEXT
loop
cannot
be
assembled.
NEXT
J
Furthermore,
exit
from
FOR-NEXT
loop
is
permitted
but
entry
to
FOR-NEXT
loop
is
not
permitted.
x
FOR A=····
..
·········
FOR
B=·······
..
····
..
IF·········THEN·····
....
······
\
NEXT
B
NEXT
A
o
5·6·6 Subroutine Command
GOSU
B statement
A subroutine
is
also called a
"subp~ogram".
Subroutines
are
separate programs to
be
called
out
from a main routine.
The command
to
call
out
a subroutine
is
a GOSUB statement. Using this command,
program execution jumps
from
the main routine
to
the subroutine.
After
the sub-
routine
is
executed, the program returns
to
the original location in the main program
(using the RETURN statement in the subroutine).
Format: GOSUB {nUmerical expression
# numerical expression subroutine callout (jump) command
RETURN command
to
return
to
main routine
-51-

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Radio Shack TRS-80 PC-4 and is the answer not in the manual?

Radio Shack TRS-80 PC-4 Specifications

General IconGeneral
BrandRadio Shack
ModelTRS-80 PC-4
CategoryDesktop
LanguageEnglish

Related product manuals