Intel 80C186XL User Manual page 374

Intel microprocessor user's manual
Table of Contents

Advertisement

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.
Variable
mod
mod and r/m determine the Effective Address (EA).
r/m and mod determine the Effective Address (EA).
r/m
reg represents a register.
reg
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
0 0 0
(BX) + (SI) + DISP
0 0 1
(BX) + (DI) + DISP
0 1 0
(BP) + (SI) + DISP
0 1 1
(BP) + (DI) + DISP
1 0 0
(SI) + DISP
1 0 1
(DI) + DISP
1 1 0
(BP) + DISP, if mod
disp-high:disp-low, if mod =00
1 1 1
(BX) + DISP
reg
16-bit (w=1)
0 0 0
AX
0 0 1
CX
0 1 0
DX
0 1 1
BP
1 0 0
SP
1 0 1
BP
1 1 0
SI
1 1 1
DI
INSTRUCTION SET OPCODES
Table D-1. Operand Variables
mod
0 0
0 0
0 1
1 0
1 1
DISP follows the second byte of the instruction (before any required data).
00
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.
8-bit (w=0)
AL
CL
DL
BL
AH
CH
DH
BH
AND CLOCK CYCLES
Description
Effect on EA Calculation
if r/m
110, DISP = 0; disp-low and disp-high are absent
if r/m = 110, EA = disp-high:disp-low
DISP = disp-low, sign-extended to 16 bits; disp-high is absent
DISP = disp-high:disp-low
r/m is treated as a reg field
TTT
0 0 0
0 0 1
0 1 0
0 1 1
1 0 0
1 0 1
1 1 0
1 1 1
APPENDIX D
Instruction
ROL
ROR
RCL
RCR
SHL/SAL
SHR
SAR
D-1

Advertisement

Table of Contents
loading

This manual is also suitable for:

80c188xl

Table of Contents