All and more about Sharp PC
-1
500 at http:/lwww.PC-1500.info
•
Se
tup
of
f
un
ccion
Fun
ction
ASC
LE
N
CD
ENTRY
ADDRESS
D9DDH
Q)
EXIT
STATE
• When no error
UH=
OOH
YL
60H
64H
R
esu
lt is stored in arithmetic reister X
(7A
OO
H ~ 7
A0
7
H)
in decimal figure.
• When error
U H
;o6
OO
H ( U H=
crror
code)
•
RIGHT
$ (Character string, numeric value- I)
L
EFT
S (Character string. numeric
va
l
ue
-I)
MID
$ (Chara
cc
cr string. numeric
va
lu
e-2
. numeric value
-I
)
Ci)
ENTRY
PREPARATION
•
Se
tup of function
Fun
ct
i
on
YL
RI
GH
TS
02H
LEFTS
7A
H
MIDS
7BH
• Existence
of
availability for 8 bytes in
th
e BASIC stack
(
7
A38 H
~
7AFF
H
)
is
checke
d.
•
In
the
ca
se
of
RI G HTS.
LEFT$
(Dat
a
of
7890
H) < (data
of
789
1 H) - 8
• l
nt
h
ecaseofM
l
0$
(Daca
of
7890
H) < (data
of
78
91
H)
- 16
Since re-write
of
7890
H and
789
1 H is not
pe
rmitted. it must be a
vo
i
ded
to
ca
ll this
subroutine.
unle
ss
th
e ab
ove
con
dit
io
n is
sa
t
is
fi
ed
.
125
Do
not
sell this PDF !!!