IA186ES/IA188ES
Data Sheet
8-Bit/16-Bit Microcontrollers
November 15, 2011
Table 89. Instruction Set Summary (Continued)
Instruction
Opcode – Hex
Clock Cycles
Flags Affected
Byte
3–6
–
Mnemonic
REP
MOVS
Description
Copy CX bytes from
segments:[SI] to ES:[DI]
Copy CX words from
segments:[SI] to ES:[DI]
Output CX bytes from DS:[SI] to
port in DX
Output CX bytes from DS:[SI] to
port in DX
Byte 1
Byte 2
A4
IA186ES
IA188ES
8+8n
O
–
D
–
I
–
T
–
S
–
Z
–
A
–
P
–
C
–
F3
F3
F3
F3
8+8n
8+8n
8+8n
8+8n
A5
6E
6F
–
–
–
12+8n
8+8n
REP
OUTS
–
–
–
–
–
–
–
–
–
12+8n
REP
Fill CX bytes at ES:[DI] with AL
Fill CX words at ES:[DI] with AL
Find non-matching bytes in
ES:[DI] and segment:[SI]
Find non-matching words in
ES:[DI] and segment:[SI]
Find non-AL byte starting at
ES:[DI]
Find non-AX word starting at
ES:[DI]
Find non-matching bytes in ES:DI
and segment:[SI]
F3
F3
F3
AA
AB
A6
–
–
–
8+8n
8+8n
5+22n
8+8n
12+8n
5+22n
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
STOS
REPE
CMPS
F3
F3
F3
F3
F3
A7
AE
AF
A6
A7
–
–
–
–
–
5+22n
5+15n
5+15n
5+22n
5+22n
9+22n
5+15n
9+15n
5+22n
9+22n
REPE
SCAS
REPZ
CMPS
Find non-matching words in ES:DI
and segment:[SI]
REPZ
SCAS
Find non-AL byte starting at ES:DI
Find non-AX word starting at
ES:DI
F3
F3
AE
AF
–
–
5+15n
5+15n
5+15n
9+15n
REPNE
CMPS
Find matching bytes in ES:[DI]
and segment:[SI]
Find matching words in ES:[DI]
and segment:[SI]
F2
F2
A6
A7
–
–
5+22n
5+22n
5+22n
9+22n
–
–
–
–
–
–
–
–
–
REPNZ
CMPS
Find AL byte starting at ES:[DI]
F2
F2
F2
A6
A7
AE
–
–
–
5+22n
5+22n
5+15n
5+22n
9+22n
5+15n
Find AX word starting at ES:[DI]
REPNE
SCAS
Find matching bytes in ES:DI and
segment:[SI]
Find matching words in ES:DI and
segment:[SI]
F2
AF
–
5+15n
9+15n
REPNZ
SCAS
Find AL byte starting at ES:DI
F2
F2
AE
AF
–
–
5+15n
5+15n
5+15n
9+15n
Find AX word starting at ES:DI
RET
Return near to calling procedure
Return far to calling procedure
C3
CB
–
data
low
–
–
16
22
20
30
–
–
–
–
–
–
–
–
–
data
high
–
Return near; pop imm16
parameters
Return far; pop imm16
parameters
Rotate 8 bits of r/m8 left once
Rotate 8 bits or r/m8 left CL times
C2
CA
18
25
22
33
data
low
/0
data
high
–
ROL
ROL
D0
D2
2/15
5+n/
17+n
5+n/
17+n
2/15
5+n/
17+n
5+n/
17+n
2/15
5+n/
17+n
5+n/
17+n
2/15
5+n/
17+n
5+n/
17+n
U
U
–
–
–
–
–
–
–
–
–
–
–
–
–
–
R
R
/0
–
Rotate 8 bits or r/m8 left imm8
times
Rotate 16 bits of r/m8 left once
Rotate 16 bits or r/m8 left CL
times
C0
/0 ib
data
8
–
–
D1
D3
/0
/0
Rotate 16 bits or r/m8 left imm8
times
C1
/0 ib
data
8
Refer to the key for abbreviations and an explanation of notation at the end of this table.
®
IA211050902-19
UNCONTROLLED WHEN PRINTED OR COPIED
http://www.innovasic.com
Customer Support:
Page 140 of 154
1-888-824-4184