BENCHMARK:
Character Search
PROCESSOR:
Intel
iAPX
88
Bytes
Cycles
4
6
LEA
~
4
MOv
3 4
MOv
1
2
CLO
~
9+15/
REPNE
SCAS
~
16/4
JZ
3
4
MOv
1
~
PASTPTR:OEC
18
bytes
8
lines
APPENDIX
;REGISTER
USAGE:
AL
-
ACCUMULATOR
CX
COUNT
01
-
TABLE
POINTER
OI,PTR
;Initialize
Table Pointer
AL,CHAR
;Search character
CX,40
;Initialize
count
;Clear direction flag
PTR
;Search
PASTPTR
;Jump
if
found
01,1
;Not
found:OI will
return
0
01
;Adj
ust
01
of
code
of
code
35
AFN 01532A