Radio Shack Pro-2032 Specifications Page 56

  • Download
  • Add to my manuals
  • Print
  • Page
    / 72
  • Table of contents
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 55
Nesting
Similar
to
the
FOR-NEXT
statement, GOSUB statements
can
also
be
stacked. The
number
of
times the subroutine
is
called
out
is
fixed.
This nesting
can
be
performed up
to
8 levels. Consequently, a subroutine
can
be
called
out
from
a subroutine.
Main routine
Subroutine
Subroutine
Subroutine
Main routine
1
st
level
2nd
level
3rd
level
Subroutine
Subroutine
In this example,
the
subroutines
are
not
stacked so
you
can use
as many as
you
like.
This example shows
three
levels
of
nesting. Up
to
8 levels can
be
stacked.
A subroutine
is
convenient
for
assembling common portions
of
a main
routine
in order
to
save
the number
of
steps or
for
assembling portions separately
as
subroutines when
assembling a complicated program.
-53-
Page view 55
1 2 ... 51 52 53 54 55 56 57 58 59 60 61 ... 71 72

Comments to this Manuals

No comments