EasyManua.ls Logo

Sharp PC-1500 - Page 115

Sharp PC-1500
169 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
Loading...
All and more about Sharp PC-1500 at http:f/www.PC-1500.info
6. The CHAIN Statement
CHAIN is a program instru
ct
i
on
;
it
can
only
be used wi
th
in a program, h cann
ot
be used
manually like
CSA
VE, CLOAO, and MERGE. The CHAIN statement a!lows y
ou
to
run a program
that
is
t
oo
large
to
fi
t into memory
all
at
once.
Such large pro9rams must be divided
up
into
scc1ion
s
v-,1ith
a CHAIN stat
emen
t at
the
end
of
eac
h
sect
ion. Th
ese
sectio
ns
ca
n be
saved
on
1ape
will>
CSAVE.
For
ex
ample, le
t'
s assume
you
have t
hr
ee
prog
ram sections named PR
OG
l , PROG2, PROG3.
Each
of
these
section
s ends
with
a C
HA
IN
st
at
e-
merit.
"PROGl "
10 :
20
:
1000
: CHA
IN
1
000
: CHAIN "
PROG2",
1010
"PR
OG2"
'--->
1010
:
.
.
.
.
r-1
2000: CHAIN
2000
:
CHA
IN
"PROG3'
20
10
"PROG
3"
y
2010:
.
4000:
ENO
During
ex
e
cu
ti
on. when the computer encounters
the
CHAIN
st
at
ement. the next
sec
tion is
called i
nt
o
mem
ory
and
ex
ecuted
.
In
th
is manner, all
of
the
sections are eventually run.
11
3
Do not sale this PDF!!!

Table of Contents

Other manuals for Sharp PC-1500

Related product manuals