11
4
A
ll
and more about Sharp PC-1500
at
http://www.PC-1500.info
5-1-5. CALL
Format
CALL
~
expression r • - variable r
<D
CALL
expression
f\
•
1a
chinc language p
ro
gra
rn
starts
to
cxeculc
st
ar
t
in
g
fr
on1 addr
es
s specified l>y the
expr
ess
ion.
F>
rog
an1
retu
rns
fron1 the 1nachi
ne
:lan
gu
age
routine by the cor
nrn
a nd.
CD
CALL
expression, variable
I)
\\
1
h
cn
the
va
rinblc is a nun1e
ri
cal
varia
ble (\vithin a
range
of
- 32768 thru 32767)
I.
~
r hc
va
lu
e of the varia
bl
e
is
tr
•.'l
nsfcrr
cd
to the X
rc
g.
2.
~
t
ac
h
i
nc
lang
ua
ge
pr
ograrn is executed front the starti
nga
cldrcss rcpn
::
scntcd by
the expre
ssi
on.
3. If there is a carry \
\'
hen returns, the value of the Xrcg is t
l'a
n
sf
cr
rcd
to t
he
v
ar
ia
bl
e.
2)
When t
he
var
iab
le
is a nonn
um
er•
ic
vari
ab
le
I.
l"
he leading address of the non11u
1nc
ri
c variable is tran
sfe
rred to the Xrega·
nd
the
Si?.
<:
infor
11
1a.
t
io
n
of
1h
c nonnu
rn
eric variable i
s:
transf
<:
rred
t<
> the accunllJlator.
2. Machi
ne
la
nguage p
rog
ran1 is exec
ut
ed fron1 the st
artin
g addre
sl\
r
ep
resented by
the expression.
3. If there is a ca
rr
y \Vhcn returns
..
the charac.ter string \\•hose
siz.e
is
indicated
iby
t
he
a
cc
un
1u
lac
or is transf
<.:
rn
:d
to •he variable
fr
o
n1
the address represe
nt
ed by the
Xr
eg
.
NO
T
E:
It
..
vi
ii
re
s
ul
t
in
ERROR 7 for a t\vO-n
on
nu
mer
ic v
ar
i
ab
le whose vari
ab
le has
no
t been
defined.
5-1-6. CSAVE M
Format
CSAVE M r - 1
JC
"file
name"; T ex:pression-1, expression-2 T , expression 3 ,.
· (j) CSAVE M expression-1, express.ion·2, expression-3
l)a
ta n
.:
siding fr
on1
the a
ddr
ess represe
nt
ed by the expression- I to t
he
addre
ss
represented by the exprcssio
n-
2 is recorded on the tap
-:
a
~
the 1
11
ac
hinc
la
nguage
p
r<>g
ra
rn.
\\
ihcn 1he exprcssion-3 is gi
ve
n. c.xccu
ti
on
\vi
ii
au
t<'>m
atica
By
take pl
;.
1ce fro
rn
th
t::
addn:ss n:p
n::-sc
ntcd by t
he
-.:x
pr
cssion-3 upon loading of
th
e p
r'og
ra
rn
fronl
th
e tape.
1
:-
ilc na
11
1c \v
iU
al
so
be recorded on
lh
e t
ap
L', \\'hen
th
ere is a
til
e
rH
tn1c.
0 CSAVE M·1
Tape contr
ol
wi
ll
be
se
t
to
the REMOTE-I side.
5-1-7.
CLOAD
M
Format
CLOAD
M r - 1
Jr
"file name";
"'
.
ex
pression r
Ci)
CLOAD
M
'f hc
n1
achinc langu
age
p
ro
gr
an1
recorded on the cape is lo
ade
d in
t<
> the
sa1
ne n1
er
nory
area as '"hen rec
or
ded.
\Vhcn the expression is
giv
en. pr
-0gra
rn
l
oad
\\•i
ll
ta
ke pla
ct
· frorn the
a<H
dr
c
ss
represented by
th
e cxp
r(·
ssi
o
n.
If there have been the e.xpres
si
on-3 duri
ng
data save. progra
rn
exec
uti
on \V
iii
au
1on
1atically take p
la
ce
fron1
the addre
ss
rcp
rcscn
t-.:d
by the
e x p
res
s
i
o
n-~
upon
co
nlplction
of
program l<>
ad
.
1-f
t)
\
vev
er. aut
or
nat
ic
cxcc
uc
ion \,·
ill
not St
a.
rt
rif t
he
expression is gi
ven.
0 CL
OAD
M-1
Tape control
will
be set
to
the
REMOT
E-I s
id
e.
Do
not sale this
PDF!!!