D-1
APPENDIX D
INSTRUCTION SET OPCODES
AND CLOCK CYCLES
This appendix provides reference information for the 80C186 Modular Core family instruction
set. Table D-1 defines the variables used in Table D-2, which lists the instructions with their for-
mats and execution times. Table D-3 is a guide for decoding machine instructions. Table D-4 is
a guide for encoding instruction mnemonics, and Table D-5 defines Table D-4 abbreviations.
Table D-1. Operand Variables
Variable
Description
mod
mod
and
r/m
determine the Effective Address (EA).
r/m
r/m
and
mod
determine the Effective Address (EA).
reg
reg
represents a register.
MMM
MMM
and
PPP
are opcodes to the math coprocessor.
PPP
PPP
and
MMM
are opcodes to the math coprocessor.
TTT
TTT
defines which shift or rotate instruction is executed.
r/m
EA Calculation
mod
Effect on EA Calculation
0 0 0
(BX) + (SI) + DISP
0 0
if r/m
≠
110, DISP = 0; disp-low and disp-high are absent
0 0 1
(BX) + (DI) + DISP
0 0
if r/m = 110, EA = disp-high:disp-low
0 1 0
(BP) + (SI) + DISP
0 1
DISP = disp-low, sign-extended to 16 bits; disp-high is absent
0 1 1
(BP) + (DI) + DISP
1 0
DISP = disp-high:disp-low
1 0 0
(SI) + DISP
1 1
r/m is treated as a reg field
1 0 1
(DI) + DISP
DISP follows the second byte of the instruction (before any required data).
Physical addresses of operands addressed by the BP register are computed
using the SS segment register. Physical addresses of destination operands of
string primitives (addressed by the DI register) are computed using the ES seg-
ment register, which cannot be overridden.
1 1 0
(BP) + DISP, if mod
≠
00
disp-high:disp-low, if mod =00
1 1 1
(BX) + DISP
reg
16-bit (w=1)
8-bit (w=0)
TTT
Instruction
0 0 0
AX
AL
0 0 0
ROL
0 0 1
CX
CL
0 0 1
ROR
0 1 0
DX
DL
0 1 0
RCL
0 1 1
BP
BL
0 1 1
RCR
1 0 0
SP
AH
1 0 0
SHL/SAL
1 0 1
BP
CH
1 0 1
SHR
1 1 0
SI
DH
1 1 0
—
1 1 1
DI
BH
1 1 1
SAR
Содержание 80C186EA
Страница 1: ...80C186EA 80C188EA Microprocessor User s Manual...
Страница 2: ...80C186EA 80C188EA Microprocessor User s Manual 1995...
Страница 19: ......
Страница 20: ...1 Introduction...
Страница 21: ......
Страница 28: ...2 Overview of the 80C186 Family Architecture...
Страница 29: ......
Страница 79: ......
Страница 80: ...3 Bus Interface Unit...
Страница 81: ......
Страница 129: ......
Страница 130: ...4 Peripheral Control Block...
Страница 131: ......
Страница 139: ......
Страница 140: ...5 ClockGenerationand Power Management...
Страница 141: ......
Страница 165: ......
Страница 166: ...6 Chip Select Unit...
Страница 167: ......
Страница 190: ...7 Refresh Control Unit...
Страница 191: ......
Страница 205: ......
Страница 206: ...8 Interrupt Control Unit...
Страница 207: ......
Страница 239: ...INTERRUPT CONTROL UNIT 8 32...
Страница 240: ...9 Timer Counter Unit...
Страница 241: ......
Страница 265: ......
Страница 266: ...10 Direct Memory Access Unit...
Страница 267: ......
Страница 295: ...DIRECT MEMORY ACCESS UNIT 10 28...
Страница 296: ...11 Math Coprocessing...
Страница 297: ......
Страница 314: ...12 ONCE Mode...
Страница 315: ......
Страница 318: ...A 80C186 Instruction Set Additions and Extensions...
Страница 319: ......
Страница 330: ...B Input Synchronization...
Страница 331: ......
Страница 334: ...C Instruction Set Descriptions...
Страница 335: ......
Страница 383: ...INSTRUCTION SET DESCRIPTIONS C 48...
Страница 384: ...D Instruction Set Opcodes and Clock Cycles...
Страница 385: ......
Страница 408: ...Index...
Страница 409: ......