Hierarchy of Instruction Sets
Interrupt Vector Assignments Real Address Mode
80186~80188
Page
Basic Instruction Set
Page
General-Purpose Data Movement Instructions
Data Movement Instructions
Push
Stack Manipulation Instructions
Basic Instruction SET
Status Flags
Flag Operation with the Basic Instruction SET
Control Flags
Hm====i
Previous Push Instructions LOW Address After Before Popa
Arithmetic Instructions
Basic Instruction SET
Subtraction Instructions
Addition Instructions
Multiplication Instructions
Division Instructions
Logical Instructions
Boolean Operation Instructions
Wordoprnd
Shift and Rotate Instructions
~-i
01, I, I aI a1,1, I, I, I a1,1,1, I aI alaiI
10 01, ,1,101, 0101,1, 01 0 10
I 1I 1I 0 1I 1 1I o I o I 1 o I 1I 1111010rrG
Ll 1 1 1 l 1
Type Conversion and No-Operation Instructions
Test and Compare Instructions
Control Transfer Instructions
Unconditional Transfer Instructions
Call Instruction
Conditional Transfer Instructions
JGE/JNL
JG/JNLE
JL/JNGE
JLE/JNG
Software-Generated Interrupts
Character Translation and String Instructions
Translate Instruction
String Manipulation Instructions and Repeat Prefixes
String Movement Instructions
Address Manipulation Instructions
Flag Control Instructions
Intel
Flag Transfer Instructions
Packed BCD Adjustment Instructions
Unpacked BCD Adjustment Instructions
BINARY-CODED Decimal Arithmetic Instructions
Trusted Instructions
Trusted and Privileged Restrictions on Popf and Iret
Machine State Instructions
Processor Extension Instructions
Input and Output Instructions
Numeric Data Processor Instructions
Processor Extension Synchronization Instructions
Basic Instruction SET Data Transfer Instructions
Page
Extended Instruction Set
Page
Block 1/0 Instructions
Chapter Extended Instruction SET
HIGH-LEVEL Instructions
Formal Definition of the Enter Instruction
Extended Instruction SET
Variable Access in Nested Procedures
2b. Stack Frame for Procedure a
2d. Stack Frame for Procedure C at Level 3 Called from B
Extended Instruction SET
Page
Real Address Mode
Page
System .INITIALIZATION
System Initialization
Ax,.x
Intel·
Mov!w
MovSiW
AX,cl
Page
Appendix 80286 Instruction Set
Page
Appendix B 80286 Instruction SET
Figure B-1. In Instruction Byte Format
80286 Instruction SET
REG =
Rb = Rw =
Mod=OO Mod=01 Mod=10 Mod=11
BX + D8 SI +
Figure B-2 Ir Instruction Byte Format
80286 U\lSTRUCTION SET
Instruction
Clocks
Description
Flags Modified
Real Address Mode Exceptions
Protected Mode Exceptions
Error Codes
Flags Undefined
#NM
#UD
#DF
#MP
#GP 13 General Protection Selector or Zero Error Code
#MF 16 Math Fault No Error Code
#MP 9 Math Unit Protection Fault No Error Code
#NP 11 Not Present Selector Error Code
#NM 7 No Math Unit Available No Error Code
#TS 10 Invalid Task State Segment Selector Error Code
#SS 12 Stack Fault Selector or Zero Error Code
#UD 6 Undefined Opcode No Error Code
Privilege Level and Task Switching on
Switchtasks
80286 Instruction SET
80286 Instruction SET
AAA Ascii Adjust AL After Addition
AAO
AAD Ascii Adjust AX Before Division
AAM
D4 OA
AAS
AAS-ASCII Adjust AL After Subtraction
ADC/ ADD-Integer Addition
ADC
ADD
AND-Logical
ARPL- Adjust RPL Field of Selector
Bound rw,md noj=13
BOUND-Check Array Index Against Bounds
Flags Undefined
Flags Modified
Operation
Call
Call Conforming Code Segment
Call FAR
Call Nonconforming Code Segment
Call to Call Gate
80286 Instruction SET Call Gate to More Privilege
Protected Mode Exceptions
Call Gate to Same Privilege
Call Task Gate
Interrupt l3 for a word operand at offset Offffh
C8W
Caw-Convert Byte into Word
CLC
CLC-Clear Carry Flag
CLO
CLD-Clear Direction Flag
Real Address Mode Exceptions
Protected Mode Exceptions
Ell-Clear Interrupt Flag
80286·INSTRUCTION SET
Opcode Instruction ClocksDescription
CLTS-Clear Task Switched Flag
CMC
CMC-Complement Carry Flag
CMP
CMP-Compare Two Operands
Cmpsw
CMPS8
CWD
CWO-Convert Word to Doubleword
DAA
DAA-Decimal Adjust AL After Addition
DAS-Decimal Adjust AL After Subtraction
Opcode Structlon Clocks Description
DEC-Decrement by
DIV -Unsigned Divide
DIVeb
DIVew
BP= Frameptr
ENTER-Make Stack Frame for Procedure Parameters
80286 Instruction SET Protected Mode Exceptions
HLT-Halt
IDIV-Signed Divide
Opcode Instruction Clocks Description Imul eb
IMUL-Signed Multiply
21,mem=24 Signed multiply rw =
21,mem=24 Signed multiply rw = EA word X imm. byte
IN-Input from Port
Mem=7 Increment EA word by
INC
INS
INS/INSB/INSW-Input from Port to String
Insb
Insw
INT3
INT IINTO-Call to Interrupt Procedure
Interrupt
Interrupt to Inner Privilege
Interrupt to Same Privilege Level
#GP, #NP, #SS, and #TS, as indicated in the list above
Opcode Instruction Clock Description
IRET-Interrupt Return
Iret
Interrupt Return
Interrupt Return to Same Level
Interrupt Return on Stack
#GP, #NP, or #88, as indicated in the above listing
JBE
JAE
JGE
JLE
80286 Instruction SET
JMP-Jump
Jump Conforming Code Segment
Jump FAR
Jump Nonconforming Code Segment
Jump to Call Gate
Jump Task State Segment
Lahf
LAHF-load Flags into AH Register
Real Address Mode Exception
14,mem=16 Load highrw= Access Rights byte, selector ew
Instruction SET
02 Ir
LOS/ LES-Load Doubleword Pointer
LDS
LES
80286 Instruction SET Protected Mode Exceptions
Effective Address Offset
LEA-load
Leave
LEAVE-HighLevel Procedure Exit
Lgdt
LGDTILIDT-Load Global/Interrupt Descriptor Table Register
Load m into Global Descriptor Table reg
LlDT
Lldt ew
LLDT-Load Local Descriptor Table Register
Load selector ew into Local Descriptor Table
Register
01 /6 LMSWew Mem=6
LMSW-Load Machine Status Word
Lock
LOCK-AssertBUS Lock Signal
Lods
LODS8
Lodsw
LOOP/LOOPcond-Loop Control with CX Counter
14,mem=16 Load rw = Segment Limit, selector ew
LSL-LoadSegment Limit
00 /3 LTR ew 17,mem=19
LTR-Load Task Register
Mem=3 Move byte register into EA byte
Opcode Instruction Clocks Description
Mem=3 Move word register into EA word
Mem=5 Move EA byte into byte register
Interrupt 13 for a word operand at offset Offffh
Movs
MOVS/MOVSB/MOVSW-Move Data from String to String
MOVS8
Movsw
MUL-Unsigned Multiplication of AL or AX
NEG-TwosComplement Negation
NEG eb
NEG ew
NOP-No Operation
Not
NOT-OnesComplement Negation
OR- Logical Inclusive or
Output byte AL to port number OX
OUT OX,AL
OUT OX,AX
Output word AX to port number OX
Outs
Outsb
Outsw
POP SS
POP
Inter
Popa
FlAGS Undefined
Popf
POPF-Pop from Stack into the Flags Register
Push
PUSH-Push a Word onto the Stack
Push CS
Push SS
PUSHA-Push All General Registers
PUSHF-Push Flags Register onto the Stack
Push flag~ register
Pushf
RCR
RCL
ROL
ROR