













































































Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
Community
Ask the community for help and clear up your study doubts
Discover the best universities in your country according to Docsity users
Free resources
Download our free guides on studying techniques, anxiety management strategies, and thesis advice from Docsity tutors
8086 Instruction Set By Er. Swapnil V. Kaware
Typology: Lecture notes
1 / 85
This page cannot be seen from the preview
Don't miss anything!
Microprocessor Notes by Er. Swapnil V. Kaware (svkaware@yahoo.co.in)
binary bits, so that this bits can be read by the
processor.
instructions or commands to perform a particular
function.
Instruction set basics
Microprocessor Notes By, Er. Swapnil
Instruction Formats
instruction formats.
(1). 1-Byte instruction,
(2). Register to register,
(3). Register to/from memory with no displacement,
(4). Register to/from memory with displacement,
(5). Immediate operand to register,
(6). Immediate operand to memory with 16-Bit
displacement.
Microprocessor Notes By, Er. Swapnil
is ‘1’ then operand is of 16 - bits.
( 2 ). Register to Memory
OPCODE W 11 REG R/M
D 7 D 1 D0 D 7 D 5 D 2 D
D 6 D 3
Microprocessor Notes By, Er. Swapnil
field.
OPCODE W MOD REG R/M
D 7
D 1 D 0 D 7 D6 D 5 D 3 D2 D
Microprocessor Notes By, Er. Swapnil
(5). Immediate operand to register
OPCODE 11 REG R/M
D 0
Lower Byte of
data
Higher Byte of data
D 7 D7 D6 D 5 D 3 D2 D0 D 7 D 0 D7 D
Microprocessor Notes By, Er. Swapnil
OPCODE MOD OPCODE R/M
D
Lower Byte of
displacement
D 7 D 7 D6 D5 D 3 D2 D 0 D7 D
Higher Byte of
displacement
Lower Byte of
data
Higher Byte of
data
D 7 D7 D0 D 7 D D
Microprocessor Notes By, Er. Swapnil
Microprocessor Notes By, Er. Swapnil
Microprocessor Notes By, Er. Swapnil
data.
or segment registers at the same time.
Microprocessor Notes By, Er. Swapnil
BX 2000H AX 2000H
BEFORE EXECUTION AFTER EXECUTION
MOV BX,AX;
MOV CL,M;
BEFORE EXECUTION AFTER EXECUTION
on to the stack.
Microprocessor Notes By, Er. Swapnil
INITIAL POSITION
DECREMENTS SP & STORES HIGHER BYTE
HIGHER BYTE
DECREMENTS SP & STORES LOWER BYTE
LOWER BYTE
HIGHER BYTE
(1) STACK POINTER
(2) STACK POINTER
(3) STACK POINTER
Microprocessor Notes By, Er. Swapnil