Download Print this page

Sharp PC-1500 Technical Reference Manual page 127

Hide thumbs Also See for PC-1500:

Advertisement

122
All
and more
about Sharp
PC-1500
at
http://www.PC-1500.info
5-4-1. Character functions
Combination of character
string
Con1bination
of character
string
..
) aind
charac(cr
string-2
(!)E
NTRY
PREPARATION
Prepa
racion
of
character
strings
Character
string
inf<>rrnation
of
the character
string-I
is
stored in
the
arithljnelic
register
(7AOOH
-
7A07
H).
C
haracter
string
inf(>r1na1ion
or
t
he
character
string-2
is
stored
in
the arithtllC tic
register
(7A IOH
- 71
\1
7H).
1
0
11
is stored
in
the
string
buffer
pointer
(iS94H).
(~
ENTRY
ADDRESS
D925H
Subroutine
is
called
in
the
fol1o\ving
forn1a1:
SJ
P
(Address
where PS
H
X
reg
is
wri11rn)
D
B
DATA (Error
return
address}
PSH
Xrcg
l
PSH
Yrcg
Write
in
other addresses
.
.IMP
0925
...
..,
....... --
~
PSH
Xr
ec
::>JP
- -
-
·
P
SH
Yreg
1
Data
~~:~:
..
I
::_--_~
-~
-
~
:~,
· -
_
:~
--
-r
..
, ,
l;
t
C rrcr -
- - -
'--':...-..
HTN
Q)
EXIT STATE
\Vhcn
no
error
Ret urns
tO t
ht.:
ad
d
ress
next
to
t
he d
ata.
l~
esulta
nt
charac1er
string
inforn1atio1l
' viii
then
be
stored
in
1hc arithmetic
register
X
(7A0011
-7A07H)
and
the
combined
character
st
ring.~
\\
1
i1l
he
sto
red
in
the
st
ring
buffer
(7
ll
I
0
I-{
......
).
• \
\'
hen er ror
r\
ftt·r storing
t he
error
codi.:
in
t
he
lJ
H
rcgistcr. il
returns
to the
data
stored
address
pl
us one.
NOTE:
Fot
details
o
f
character
string
info,malion. 'efe,
10
lhe
parngn1ph
discussin
g
the
Stfut lure
of
v~
riable
and
pfog
ra
n~
.
Do not sale
this PDF!!!

Advertisement

loading