EasyManua.ls Logo

Sharp PC-1500 - Page 121

Sharp PC-1500
182 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...
All and more about Sharp PC
-1
500 at http:/lwww.PC-1500.info
5-3.
Expression
of
variable
and
program
.
1
16
5-3-1. Expression of decimal number
Decimal
numb
er consists
of
eight bytes which
ar
c used
to
represent
nu
mber
wi
thin a range
of
- 9.999999999 X
10
99
to
+ 9.999999999 X
10
'"
and
ar
e composed of the
expone
nt
pan,
mantissa sign
and
mantissa part.
E
xp
onent par
t:
expressed in a binary n
umbe
r.
--
-
-------
l
l
L
OOH
Nega
tive num
ber
is r
ep
re
se
n
ted
by
comp
l
eme
nt.
Manti
ss
a
MarH
is
sa
s ig
r~
Mantissa sign:
OOH
(Positive)
80H (Negative)
Ex
ponen
t
(Exa
mple
wh
en
numeric
is
stored
from
7A
OO
H
to
7A07H)
7A
OO
H
7A07
H
03
H
OOH
1 5 H
OO
H OOH OOH OOH
OO
H
OO
H 1 2 H
3
4 H 5 6 H
OO
H OOH
FD H
OO
H I 2 H 3 4 H
56H
7 8 H
90
H
08H
80
H 1
2H
3 4 H OOH OOH
O
OH
5-3-2. Expression of binary number
OO
H
OOH
OOH
OOH
1
soo
1.
23456
0.
00
1
234567890
12
-
1.
234
x
10•
Binary
numb
er
co
nsists
of
eight bytes. bul
fi
ve
bytes
ar
e
no
t used. It expresses a
bi
nar
y
numbe
r within
an
integ
er
range
of
-32
768
thru + 32767.
Negative number
•s
expessed
by a comp
le
men
1
In
va
lid da
ta
B2
H
L
L.
Inval id data
61nary
number
(Example
when
numeric
is
stored
from
7AOOH
to
7A07H)
7AOO
H
I*
-
* *
*
B2H
OSH
OCH
f *
-
*
* *
B2H
FFH
FBH
l *
*
* *
B 2 H
7F
H
FFH
' *
* *
*
B2H
SOH
OOH
NOTE:
Not
ed
wit
h an a
sterisk
(
*)
i
nd
i
ca
tes i
nva
li
d
data
.
5-3-3. Expression of character string
7A07H
*
!__
*
*
l
500
- 5
32767
-
32768
Character string i
nforma
tion is composed of ei
ght
bytes (with fo ur bytes
of
va
li
d
da
t
a)
a nd
it
res
ides in t
he
add
res
s comained in the character st
ring
informati
on.
* I * j * I * I
DO
H I AODH I ADDL l
tE
NGTH
I Size ol character string:
01
H th
ru
SO
H
. . . . l Leading address of character s1·ring:
Invalid data
DOH
Leading
add
ress
--
Ls
ize of
OOOOH
th
ru FFFFH
of
character
ch
ara
c~er
s1 ri ''9
st
ring
E
xamp
le
that
the
character
str
i
ng
in
fo
rm
ation
resides
in
the a
ri
thmetic
register
and
the
character
str
ing
"
SHARP"
resides in the str
ing
b
uffe
r.
7AOOH
7A
07H
Li
I *
..LI
-*-'
~
*
-
'
DO
H I 7BH [
JO
H I
05H
I
7B14H
I 53H I
48H
4
1H
52H I 50H I
s H A R
p
Do
not sell this PDF !! !