EasyManua.ls Logo

Sharp CE-150 - Page 362

Sharp CE-150
412 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
122
All and more about Sharp PC-1500
at
http://www.PC-1500.info
5-4-1. Character functions
• Combination
of
character stri
ng
Con
1b
ination of character stri
ng
..
) aind charac(cr stri
ng-2
(!)E
NTRY PREPARATION
• Prepa
ra
ci
on
of
character strings
Character string inf
<>
rrnation of
th
e charact
er
string
-I
is stored
in
th
e arith
lj
ne
li
c
register (7
AOOH
- 7A07 H).
Charact
er
string inf(
>r1na1ion
or t
he
character strin
g-
2 is stored
in
th
e arithtllC
ti
c
regi
ster
(7A
I
OH
- 71
\1
7H).
• 10
11
is stored
in
the string buffer point
er
(
iS
94H).
(~
ENTRY ADDRESS
D925H
• Subroutine is called in the fol1o\ving forn1
a1:
SJ P
(A
ddress where PS H X r
eg
is
wri11
rn)
DB DATA (Error
re
turn addres
s}
PSH Xrcg l
PSH Yrcg Wr
it
e
in
other
add
re
ss
es
.
.IMP 0925
...
..,
.......
--
~
P
SH
Xr
ec
:
:>
JP
- - - ·
P
SH
Yr
eg
1
Data
~~:~:
..
I
:
:_-
-
_~ -~
-
~
:~
,
·-
_
:
~
--
-r
..
,,
l;
t Crrcr -
---
'--
':..
.
-..
HTN
Q)
EXIT STATE
• \Vhcn no
err
or
Ret
urn
s tO t
ht.:
address next to the data.
l~
esu
lt
a n
t
charac1er string
in
forn1atio
1l
'vi
ii
then be stored
in
1hc
ar
ith
me
ti
c register X
(7A
0011
-7
A
07H)
and the combined
chara
cter
st
ri
n
g.~
\\
1
i1l
he stored in
th
e st ring buffer (7
ll
I 0
I-{
......
).
• \\'
hen
err
or
r\
ft
t·r storing the
error
codi.:
in the lJ H rcg
is
t
cr
. il returns to the data stored
addres
s
pl
us
on
e.
NO
TE: Fot details of charac
ter
st
ring
in
fo,
ma
li
on.
'e
fe,
10
lhe par
ng
n1ph discussing the
Stfut lure
of
v~
r
i
ab
le
and
pfog
ra
n
~
.
Do
not sale this
PDF!!!