Radio Shack Pro-2032 Specifications Page 54

  • Download
  • Add to my manuals
  • Print
  • Page
    / 72
  • Table of contents
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 53
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-
Page view 53
1 2 ... 49 50 51 52 53 54 55 56 57 58 59 ... 71 72

Comments to this Manuals

No comments