Download Print this page

Sharp CE-150 Service Manual page 356

Color graphic printer

Advertisement

All
and more
about Sharp
PC-1500
at
http://www.PC-1500.info
5-3. Expression of variable and program
116
5-3-1. Expression of decimal number
Dccinlal
nunlbcr
consists
()f
eight
bytes \vhich
arc
u::;cd
to represent
nun1bcr
' vi
thin
a
ra
nge
of
-
9.999999999
X
I0
9
'
to
+
9.999999999
X
10'"
a
nd
are
composed ofthccxponenl
pan.
inantissa
sign
and
n1
antissa
pare
: _J
Expo
nent
pa.rt: cxpfCSSCd
n~
o
b inary
nun1
b¢r.
-
-=====-....' . _,
-
l
l
L
Mantisso
OOH
Negative rlumbcr
is
represented
by
comp
1cmc1~t.
Mantissa
sign
Exponent
M(ln1issa
sign:
OOH
(Positi·.
• c)
SOH
(Neg
\'ltivc)
(Example when numeric
is
stored from 7 AOOH to 7 A07H)
7AO~
7A07H
[
0
3
H
.
1
5
H
OOH OOH
j
OOH
OO
H
1500
OOH
OOH
r
0
0
H
OOH
i
1
2
H
3
4H
!
Ss
H
l
oo
H
'
ooH
QOM
1.23456
1
F
OH
OOH
I
2H
3
4
M
56
H
7
8H
j
90
H
OOH
0.0012345$789012
L
0 8
H
80
H 1
2
H
j
3
4
H
OO
H
00
H
j
00
H OOH
-
1.234
X10"
5-3-2. Expression of binary number
llinary
nuntbcr consists of
t
ight
hytcs:.
but
five
bytes arc
not
used
.
le
expresses
a
binary
nu1nbtr
\V
i
l hin
an
integer
rang..:
of
-
32768
thru
+32767.
Ne9a1
ive
nt1
n)bCf
is
c
xpessad
by
a
comp leo~en
t.
lnvaliCS
<!'1ta
(Example
when numeric
is
stored fr'om 7A00H to 7A07H)
71
\
00H
7A07H
*
.,-*
T
*
*
j
B2
H 0
5
H
j
DCH
j
*
I
**
;
,-
*
I
*
B2H
FF
H
I
F
BH
I
*-
f-
]
*
*
-
B
2
~1
7 F
H
.
f
F
H
*
-I
*
*
1
*
*
B2H
l
6
0
li!
OOM
I
*
NOTE: Noted
\•1i
th
an asterisk
(
*
)
ind ica1es
invali(i
data.
1500
-
5
32767
-
32768
5-3-3. Expression of character
string
(
:haractcr
st ring.
inf
or rnatio
n is
conlposc:d
of
eight
bytc. . ·
s
(
'vit
h
four
hyt
es
of
va lid
data
)
and
it
rcsidt-s
in
the
address
<.:ontai
ne.:d
in
the
character stri
ng
i nJorn1ation.
*
*
*
*
Invalid
data
DOH
ADDH
ADDL
L<NGTH
S•
~e
o
l
c.:harac1er
strinrr 01
H
thr'll
5011
Leading
address
of
character
st
ring:
[)oH
Le~1(fing
"-cldress-
t:$ize
or
OOOOM
tl)fu
FFFFlt
c
f
ch.;1r.;1cter
c.: h~1ra
c!et
siring
siring
Example
lhat
lhc character string lnfor'mation
resi
des in the arithmetic register
and
l
he
character
siring
·'SHARP'' resides in the string buffer.
7A00H
l
*
I
*
""!-
*
_
'
_
*
_
7
A071i
DOH
7
Bfi
j
I
O
H
05H
7B1CH
70 14H
53H
48H
4
1H
52H
S~H
$
H
A
i1
i'
Do not sale
this
PDF!!!

Advertisement

loading