Download Print this page

Sharp PC-1500 Technical Reference Manual page 119

Hide thumbs Also See for PC-1500:

Advertisement

11
4
All
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\•
1achinc la
nguage
prograrn
starts
to
cxeculc starting
fron1
address specified
l>
y
the
expression.
F>rogan1
returns
fron1
the
1
nachine
:language routine
by
the
cornrna
nd.
CD
CALL expression, variable
I)
\\
1
hcn
t
he varinb
lc
is
a
n
un1erical
variable
(\vithin
a
range
of
-
32768
th ru
32767)
I.
~r
hc
va
lue
of
the
varia
ble
is
tr•.' l nsfcr rcd
to
the
Xrcg.
2.
~tachinc
la
nguage prograrn
is executed
front
the
starti
ngacldrcss rcpn::scntcd
by
the
expression.
3.
If there
is
a
carry \\'hen
returns,
the
value of the
Xrcg
is
tl'a nsfcrrcd to the varia
ble.
2)
When
the
variable
is
a
nonnumer•
ic
variable
I.
l"he
leading
add
ress
of
the
non11u1ncric
variable
is
transferred to
the
Xreg
a
·
n d
the
Si?.<:
infor111a.tion
of
1hc nonnu rneric
va
riable is:
tra
nsf<:rred
t<> the
accunllJlator.
2.
Machine language
progran1
is executed
fron1
the
starting
addresl\
represented
by
t
he
ex
pression.
3.
If there
is
a ca
rry
\V
hcn
returns ..
the
charac.ter
string
\\•hose
siz.e
is
indicated
iby
the
accun1ulacor
is
transf<. :
rn:d
to
•he
variable
fron1
the
address
represented
by
the
Xreg.
NOTE:
It
..
viii
result
in
ERROR
7
for
a
t\vO-nonnumeric
variable
whose
variable
has
not
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)ata
n.:siding
fron1
the
address re presented
by
the
expression-
I
to
the
address
represented
by
the
exprcssion-2
is
recorded
on the
tap-:
a~
the
1 11achinc
lang
uage
pr<>gra
rn.
\\ihcn
1he
exprcssion-3
is
given.
c.
x ccution \viii
aut<'>matica
By
take
pl;.
1
ce
frorn
tht::
addn:ss
n:
pn::-scntcd
by
the
-.:xprcssion-3
upon
loading
of
the
pr'ograrn
fronl the
tape.
1
:-ilc na
111c
\viU
also
be
recorded on
lhe
tapL
', \\'hen
there
is
a
tile
rHtn1c.
0
CSAVE
M·1
Tape
control
will be
set
to
the
R
EMOTE-I
side.
5-1-7. CLOAD M
Format
CLOAD
M
r
-
1
Jr
"file
name";
"'.
expression
r
Ci)
CLOAD
M
'f
hc n1achinc
language
progran1
recorded
on
the
cape
is
loaded int<>
the
sa1ne
n1erno
ry
area
as
'"hen
recorded.
\Vhcn
the
ex pressio
n
is
given.
pr-0grarn
load
\\•ill
take
plact·
frorn
the
a<Hdrcss
represented
by
the
cxpr(·ssion.
If
there
have
been
the
e.
x
pression-3
du
ring data
sa ve.
prograrn
execution
\V
iii
au1on1
atically
ta ke place
fron1
the
add
ress
rcprcscnt-.:d
by the
ex
pression-~
upon
conlplction
of program
l<
> ad.
1-ft)\vever.
autornatic
cxccuc ion
\,·ill
not
Sta.rt
r
i
f the
expression
is
given.
0
CL
OAD
M-1
Ta
pe
control
will
be
set
to
the REMOT E-I
side.
Do not sale
this
PDF!!!

Advertisement

loading