80386
Table 8-1. 80386
Instruction
Set
Clock
Count Summary (Continued)
CLOCK COUNT NOTES
Real
Real
INSTRUCTION
FORMAT Address Protected
Address Protected
Mode
or
Virtual
Mcdeor
Virtual
Virtual
Address
Virtual Address
8086
Mode 8086
Mode
Mode
Mode
LOGIC (Continued)
Register
to
Memory
I
OOtOOOOw
I mod
reg
r/ml
7 7
b h
Memory to Register
I
0010001w
I mod reg
r/ml
6 6
b h
Immediate
to
Register/Memory
I
1 OOOOOOw
Imodl
00
r/ml
immediate
data
217 217
b h
Immediate
to
Accumulator (Short Form)
I
a 0 1
00
1
Ow
I immediate data 2
2
TEST
~
And
Function
to
Flags, No Result
Register/Memory
and Register
I
1000010w
I mod reg
r/ml
2/5
2/5
b h
Immediate Data and Register/Memory
I
tlltOllw
ImodOOO
r/ml
immediate data
2/5
2/5
b h
Immediate Data and Accumulator
(Short Form)
I
10
1 0 1
DOw
I immediate
data
2 2
OR
~
Or
Register to Register
I
00001
Odw
I mod reg
r/ml
2 2
Register to Memory
I
0000100w
I mod reg
r/ml
7 7
b h
Memory to Register
I
0000
101
w ImOdreg
r/ml
6 6
b h
Immediate
to
Register/Memory
I
1 OOOOOOw
ImodOOI
r/ml
immediate
data
2/7
217
b h
Immediate
to
Accumulator (Short Form)
I
00
0
0110
w I immediate data 2 2
XOR = Exclusive
Or
Register to Register
o 0 1 1 0 a d w I mod reg
r/ml
2 2
Register to Memory
0011
OOOw ImOdreg
r/ml
7 7 b
h
Memory to Register
0011001w
ImOdreg
r/ml
6 6
b h
Immediate to
Register/Memory
1 OOOOOOw
Imodll
0
r / m I immediate
data
2/7
217
b h
Immediate to Accumulator (Short Form)
001101
Ow
I immediate data 2 2
NOT
~
Invert
Reglster/Memory
1111011
w ImodO 1 0
rim/
Clk
2/6 2/6
b h
STRING MANIPULATION
Count
Virtual
CMPS
~
Compare
Byte
Word
I
1010011
wi
8086
10
10
b h
Mode
INS
~
Input
Byte/Word
from
OX
Port
I
a
11
a
11
Ow I
I
t29
15
9','29"
b
h,m
LODS
~
Load
Byte/Word
to
ALI
AX/EAX
I
10
1 a 11 Ow I
5
5
b h
MOVS
~
Move
Byte
Word
I
1010010wl
7
7
b h
OUTS
~
Output
Byte/Word
to
OX
Port
I
a 11 a
111
wi
I
t28
14
8'/28"
b
h,m
SCAS
~
Scan
Byte
Word
I
1010111
wi
7
7
b h
STOS
~
Store
Byte/Word
from
AL/AX/EX
I
1010101
wi
4 4
b h
XLAT
~
Translate String
I
11010111
I
5 5
h
REPEATED
STRING MANIPULATION
Repeated by Count
in
ex
or
ECX
REPE CMPS
~
Compare
String
(Find Non-Match)
I
11110011
I
1010011
wi
5+9n
5+9n
b h
* If CPL
,;;
IOPL
.*
If CPL > IOPL
115