114
All
and more about Sharp
PC
-
1500
at http:/lwww.PC-1500.info
5-1-5. CALL
Format
CALL
- expression T , - variable T
CD
CALL
expression
Machine language
program
starts t o execute starting from a
dd
ress speci
fi
ed by
th
e
e
xpr
essi
on.
Pr
ogam
ret
urns
from
th
e machine l
angua
ge
rou
tine by the
command.
CD
CALL
expression, variable
l) Wh
en
the
va
riable is a numerical vari
able
(within a range
of
-
32768
thru 32767)
I.
The value
of
the variable is t
ra
nsferred to
th
e
Xreg
.
2. Machine
lan
guage p
rogram
is executed from the starting
add
ress represented by
the e
xpr
ession.
3.
lf
there
is
a
carry
wh
en
r
et
u
rns.
the
value
of
the
Xr
eg is transferred to the
va
riable.
2)
Wh
en the variable is a
nonnumeric
vari
ab
le
I.
Th
e leading
addres
s
of
th
e norm urneric v
ariab
le is transferred to the Xr
eg
a nd
the
si
ze
information of the non numeric va
ri
ab
le is t
ran
sferred to
the
accumu
l
ator.
2.
Ma
chine language
program
is executed from the starting address r
ep
resented by
the expression.
3. lf
th
ere is a
carry
when returns. the char
ac
ter St
ri
ng whose size is indicated by the
acc
u
mu
la
tor
is transferred
to
th
e variable from the address re
pr
esented by the
Xr
eg
.
NO
TE
: It
wi
ll resu
lt
in ERROR 7 for a two
-n
onnumeric v
ar
iable whose va
ri
able h
as
not been
defined.
5-1-6. CSAVE M
Format
CSAVE
M r - 1 ·
rr
"file
name
"; T expression-1,
express
ion
-2
T ,
expre
ss
ion
3 T
·
CD
CSAVE
M expression-1,
expression-2
,
expression-3
Da
ta residing frorn the
addr
ess re
pr
esented by
tb
e
ex
pressio
n-
I
to
the
add
ress
represented by the
ex
pression-2 is recorded
on
the t
ape
as
the m
ac
hine language
program.
Wh
en the expression
-3
is given.
exec
uti
on
wi
ll
aut
omat
ically take pla
ce
fr
om
the
address represented by the expressi
on
-3
up
on
l
oa
ding
of
the
pr
og
ram from the
tap
e.
File
name
wi
ll
al
so
be r
eco
rded
on
the t
ape,
when there is a
fi
le name.
CD
CSAVE
M-1
Tape
c
ontr
ol wi
ll
be set to the R E
MO
TE
-I
si
de
.
5-1-7. CLOAD M
Format
CLOAD
M T - 1
JC
"file
name"
; .,.
expression
r
CD
CLOAD
M
The machine language prog
ram
r
eco
rded on
th
e
ia
pe is loaded
int
o
th
e same
me
mo
ry
area as when recorded.
Wh
en
th
e
ex
pr
essi
on
is gi
ve
n, p
rogram
lo
ad
wi
ll
take place from
the
add
ress
represented by
th
e expression.
If there
ha
ve b
ee
n
th
e
expre
ssicm-3 d
ur
ing daca save, program execu
ti
on
will
au
tomatica
ll
y c
ake
place from the
add
ress represented by
th
e ex
pr
ession-3 u
po
n
completi
on
of
prog
ram
load. However.
automa
ti
c execution wi
ll
not start if the
ex
pression is giv
en
.
CD
CLOAD
M-1
Tape
co
ntro
l w
ill
be set
to
th
e
REMOTE
-I side.
Do
not sell this PDF !! !