Intel 210200-002 Baby Furniture User Manual


 
APPENDIX
BENCHMARK:
Bubble
Sort
PROCESSOR:
zao
Bytes
2
4
3
1
3
3
3
3
1
1
1
1
2
3
3
3
3
2
1
1
1
t!
1
2
3
;
REGI
STER
USAGE:
Cycles
a
14
10
aLI:
71lt!
8
10
SET
LD
LD
BIT
JR
RES
LD
4
L2:
EXX
19
LD
19
LD
19
L D
19
LD
4
LD
4
LD
4
AND
11
S B C
7
Il
t!
JR
19
LD
19
LD
19
LD
19
LD
8
SET
4
NOEX:
EXX
6
INC
6
INC
8
AND
11
SBC
7
Il
t!
JR
10
JP
DONE:
BC
ACCUMULATOR
DE
-
ACCUMULATOR
HL
COUNT
HL
ACCUMULATOR
IX
ARRAY
POINTER
DE
TEMPORA~Y
STORAGE
FLAG,A
IX,PTR
DE,l
FLAG,A
Z,DONE
FLAG,A
HL,C04NT-l
C,(IX+O)
B,(IX+l)
L,
(.IX+2)
H,(IX+3)
E,L
D,H
A,A
HL,BC
NC,NOEX
(IX+2)C
(IX+2)B
(IX+O)E
(IX+l
)D
FLAG,A
IX
IX
A,A
HL',DE'
NZ,
U
Ll
62
bytes
of
code
30
lines
of
code
19
;Set
FLAG
bit
;Load
pOinter
to
array
;Load decrement
constant
;Test
FLAG
;Done
if
zero
;Reset
FLAG
;Load
COUNT
;Load
data
(I)
;Load
data
(1+1)
;Save
date
in
DE
;Clear
carry
flag
;Compare
data
;No
ex
if
data(I)
data(I+l)
;Exchange
;Set
exchange
flag
;Increment
Pointer
;Clear
carry
flag
;Decrement
COUNT
;Jump
if
COUNT
not
zero
;Another
pass
AFN·01664A