User's Manual

NUMERIC
PROGRAMMING
EXAMPLES
IAPX2B6
_AD
_,",LEA
12: 11:
os·
09/25183
PAQE
SEAlES-III
IAPX2S6 "",CRD ASSEKILEA XlOS ASSEKILY OF I10IIULE OET.,pOWER_10
aaJECT
I'IDDULE
PLACED
IN
:
F3:
PDW10.
a
...
ASSEJ1BLER
INVOKED
IV:
A8M286.86:
F3:
PDWIO.
AP~
LOC
.
DI~
0000
OOOOOOOOooOOFO
3F
0008
00000000000024
40
0010
00000000000059
40
001B
ooOOOoooo0408F
40
0020
0OOOOO0OOO8BC3
40
0028
000000000061\F8
40
0030
0000000080842E
41
0038
00000000001263
41
0040
0000000084D797
41
0048
aOOOOO0065CDCD
41
0050
00OO0020~M02
4.
0058
000000E8764837
4.
OObO
OOQOOOA2941A6D
4.
0068
000040E59C3DA2
4.
0070
0000901EC4oC06
••
0078
00003426F5680C
43
0080
0080E03779C341
43
0088
001'100885573476
43
0090
OOCB4E676DC1AD
43
0098
0098
301200
0098
770F
0090
53
009E
8108
OOAO
C1E303
O0A3 2EDD870000
OOAS
51
DDA'
09F4
OOAB
C3
OOAC
GOAC
D9E9
OOAE
C8040000
0012
a946FE
0085
OE4EFE
ooae
9BD97EFC
OOIC
a.46FC
008F
25FFF3
OOC2
Ol)C)O()i
oacs
.746FC
DOCS
OCIE8
LINE
1+1
2
3
4
5
6
7
a
9
10
II
I.
13
14
IS
16
17
la
19
20
.1
••
.3
.4
26
.7
.8
.9
30
3.
32
33
34
35
36
37
as
39
40
41
4.
43
44
45
46
47
4S
49
SO
51
52
53
54
55
56
57
sa
SOURCE
.UU.C-C.lcuhh
th
v.lua
a,1
lo*
•••
·~
Thh
lub1'DUUnW
will
c.leul.t.
the
v.lue
of
10
••••.
Fa,"
..,alu
••
of
0
c-
a.
<
I',
the
"
••
ult
111111
...
ct.
All
80286
".ght."
••
".
'II,..n.,
.,..nt
.nd
th.
v.lu.
is
.,..tu"n,d
on
.J
th.
TDB
••
two
nu_b.r
••••
pon.nt
in
STet)
.nd
'".cUon
in
STeO).
I
Th
••
«.on.nt
v.lu.
c.n
II.
1.,.
.....
than
th.
l.",
••
t
...
,on.nt
0'
.n
••
t.nd.d
"
••
1
fo"
••
t:
nu
.....
".
Th"
•••
t.cll
.nt,,:i'
••
".
u
••
d.
.t.cll
g.t:-polII'T'
_10
pu"
lic
.,t-P0IlltT'
_10.
palll."
_tab
It
.t.c
....
B
.'I
••
nt
."
pubUc
Us
••••
ct
valu,.
f"alll
1.0
to
leiS.
1.
O.
1.1. 1.2.
h3
d,
h4.
1.5.
h6.
h7
d.
1116.
h17.
hiS
•••
1B
,m,
J.
out_a,
_".nl'
pu.h
...
mov
b
..
,
••
hl
....
,3
,lei
pa
..
tT'_tabht
.... l
pop
b.
ht".ct
•••
J
Optill111
16
bit
ac:c
...
I
T.I'st
'OT'
0
<-
a.
<
19
,
O.t
lIIa"Ung
ind
••
".gut."
,
Fa,..
t.blt
ind
••
,
O.t
•••
ct
v.lu.
, R
••
to"
......
ish
...
vah.
S.p
.......
pOIll
.....
nd
.".ctian
aM
to
haY.
f.tr.ct
"'unninl
C.lcul.h
th.
v.lu.
u.ing
th
•••
pon.nU.h
inst
...
uction.
Th.
followinl
....
I.Uon.
at'. u
••
d:
10".
-
2.*e
la.2C
10)*.)
2"(
I+F)
-
2**1
.!2'*F
If
.ut)
1
.nd
.UO)
-
.!2.ttF
then
hc.le
p
...
aduc
••
.!2"(I+F)
I.
.
aut_of
_r.ng.:
'IdI2'
.nt."
...
U.ul
f.tclil
...
.nd
..
Ichg
flell
4.0
tbp-.!21. a
ward
Ittr
CIIp-2]
wo"d
ptr
tbp-4]
•••
1II0rd
ptr
Cbp-41
•••
not
OCOOH
a •• 040DH
•••
wo
...
d
pt
...
tbp-41
TOS -
LOOaUOI
Fa"
..
t
.t.c.
I
S.v.
po".,.
0'
10
v.lu.
I TOS. X -
LO02C
10ltP
LD02110"P)
I
G.t
cu
...
.,..nt
cont.,.ol
wa.,.d
I
G.t
cont.,.ol
lIfo.,.d.
no
w.it
n.c
....
.,.u
I
....
11
off
cu.,.,..nt.
".oundinl
'Ulel
I
S.t
nund
to
n'latlv.
1nfinitu
Put:
nil.
cont"al
wo,.d
in
••
ao1'U
old
cant"ul
wo,.d
is
in
a
..
"
S.t
ros
-1.
0
Figure 4-6. Floating-Point
to
ASCII Conversion Routine (Cont'd.)
4-13