122
All and more about Sharp PC-1500 at http:/lwww.PC-1500.info
5-4-1. Character functions
• Combination of charac
te
r string
Combination
of
character string-I and character st
ri
ng-2
(i)
ENTRY
PREPARATION
• Preparation
of
character strings
Character string information
of
t
he
character str
in
g-I is stored in t
he
a
ri
thmetic
r
egis
ter (7
AOOH
~
7
A07 H).
Cha
ra
cter s
tri
ng information
of
t
he
character str
in
g-2 is stored
in
the arithmetic
register (7 A
I
OH
~
7
/\
I 7H).
•
IO
H is st0red in the string buffer poimer (7894H).
CD
ENT
RY
ADD
RESS
092
5H
• Subroutine is
ca
ll
ed
in the
fo
ll
ow
i
ng
format:
SJ
P
(A
dd
ress
where
PS
H Xreg is
writ
ten)
DH
DATA
(E
rr
or
re
turn addr
es
s)
PSH Xrcg }
PSH Yr
eg
Wr
ite
in
oth
er
addres
ses.
JM
P 0925
S
W
--~-
--
-
-~
PSHXreg
PS
H
Yre
g
D
ata
:r~.~"
"
'
[
:
~----~
-
~
-~
JMe
'~~
--
-T"5
'
At error - - - - -
":.,
~
RT
N
Q)
EXIT STATE
• Wh
en
no
error
Returns to t
he
addre
ss
n
ex
t to t
he
data.
Resu
ltant character string information wi
ll
then
be
stored in t
he
arithme
ti
c 1register X
(7AOOH
~7
A07H)
and the combined
character stri
ngs
will
be
stored in the
st
ring buffer
(7
B
I
O
H
~
).
• When er
ror
After
st
or
ing t
he
e
rro
r code in t
he
UH register. it ret
urn
s to the data stored
ad.dress
pl
us
one.
NO
TE
: F
or
details of character string infor
ma
tion. refer to the
pa
ragr
ap
h di
sc
u
ss
ing the
struct
ure
of va
ri
ab
le and pro
gr
am
.
Do
not sell this PDF !! !