SlideShare a Scribd company logo
Instruction Set of 8086 Microprocessor
What is Instruction Set
 Instruction:- An instruction is a binary pattern
designed inside a microprocessor to perform a
specific function.
 The complete collection of instructions that
are understood by a CPU are known as
instruction sets.
Instruction set basics
 Opcode:- It stands for operational code. It
specifies the type of operation to be performed
by CPU. It is the first field in the machine
language instruction format.
 E.g. 08 is the opcode for instruction “MOV X,Y”.
 Operand:- We can also say it as data on which
operation should act. operands may be register
values or memory values. The CPU executes the
instructions using information present in this
field. It may be 8-bit data or 16-bit data.
Instruction set basics
 Assembler:- it converts the instruction into
sequence of binary bits, so that this bits can be
read by the processor.
 Mnemonics:- these are the symbolic codes for
either instructions or commands to perform a
particular function.
 E.g. MOV, ADD, SUB etc.
Simple Instruction Format
Instruction Formats
 In 8086 microprocessor there are following six types
of 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.
1-Byte instruction
 The instruction is 1-byte long in size.
 It May contain implied data or register operands
(data).
 The least significant three bits of opcode are
used for specifying register operand. Otherwise
all the 8-bits creates an opcode.
(2). Register to Register
 The instruction is 2-byte long in size.
 First byte of code denotes opcode & width of
operand.
 Second byte denotes register operands & R/M
field.
OPCODE D W 11 REG R/M
D7 D0D1 D7 D5 D2 D0D6 D3
(2). Register to Register
 ‘REG’ field denotes type of register used.
 ‘R/M’ field denotes register or memory location
used.
 If ‘W’ field is ‘0’ then operand is of 8-bits, & If
‘W’ field is ‘1’ then operand is of 16-bits.
(3). Register to/from memory with no
Displacement
 The instruction is 2-byte long in size.
 First byte of code denotes opcode & width of
operand.
 Second byte denotes mod,register operands &
R/M field.
(3). Register to/from memory with no
Displacement
 ‘MOD’ field denotes type of addressing mode
used.
 In case of no displacement the MOD=00
OPCODE W MOD REG R/M
D7 D7 D6D0D1 D0D2D5 D3
(4). Register to/from memory with
Displacement
 The instruction is 4-byte long in size.
 First byte of code denotes opcode.
 Second byte denotes register mod,register
operands & R/M field.
(4). Register to/from memory with
Displacement
 Third byte denotes lower byte of displacement.
 Fourth byte denotes higher byte of
displacement.
OPCODE MOD REG R/M
D7 D0 D0D7 D6 D2D3D5
Lower Byte of
displacement
Higher Byte of
displacement
D7 D0 D0D7
(5). Immediate operand to register
 The instruction is 4-byte long in size.
 First byte of code denotes opcode.
 Second byte denotes opcode,R/M field.
(5). Immediate operand to register
 Third byte denotes lower byte of data.
 fourth byte denotes higher byte of data.
OPCODE W 11 REG R/M
D0
Lower Byte of
data
Higher Byte of
data
D7 D7 D6D5 D3 D0D2 D0D7 D0D7
(6). Immediate operand to memory with 16-
bit displacement
 The instruction is 5 or 6-byte long in size.
 First byte of code denotes opcode.
 Second byte denotes register mod,opcode & R/M
field.
(6). Immediate operand to memory with 16-
bit displacement
 The remaining 4 bytes of data contains 2 bytes of
displacement and 2 bytes of data.
OPCODE MOD OPCOD
E
R/M
D0
Lower Byte of
displacement
D7 D7 D6D5 D3 D2 D0D7D0
Higher Byte of
displacement
Lower Byte of
data
Higher Byte of
data
D7 D0D7D7 D0D0
Instruction Cycle
 Instruction is command which is given by the user
to computer.
 The time period during which one instruction is
fetched from memory and execute when a
computer given an instruction in machine language.
 Each instruction is further divided into sequence of
phases.
 After the execution the program counter is
incremented to point to the next instruction.
Phases
 Fetch an instruction from memory.
 Decode the instruction.
 Execute the instruction.
Fetch Cycle
 In this phase the sequence counter is
initialized to 0.
 The address of first instruction from PC is
loaded into address register during the
first clock cycle.
Fetch Cycle
0002
Mov AC,0
Mov AC, 0
0000
0001
0002
0003
IRDecode
unit
Execute
unit
PC
AC
Decode Cycle
 The instruction is decoded by the instruction
decoder of a processor.
 All the bits of the instruction under execution
stored in IR are analyzed and decode in third
clock cycle.
Decode Cycle
0002
Mov AC,0
0000
0001
0002
0003
PC
AC
IRDecode
unit
Execute
unit
Mov AC, 0
Execute Cycle
 In the last phase, the processor execute the
instruction.
 This involves setting the contents of the internal
register AC to constant value 0.
Execute Cycle
0003
AC 0
Mov AC,0
Mov AC, 0
0000
0001
0002
0003
IRDecode
unit
Execute
unit
PC
AC
Thank
You

More Related Content

What's hot

Instruction Set Architecture: MIPS
Instruction Set Architecture: MIPSInstruction Set Architecture: MIPS
Instruction Set Architecture: MIPS
Prasenjit Dey
 
Register & flags
Register & flagsRegister & flags
Register & flags
fazli khaliq
 
Instruction formats-in-8086
Instruction formats-in-8086Instruction formats-in-8086
Instruction formats-in-8086
MNM Jain Engineering College
 
8051 microcontroller
8051 microcontroller8051 microcontroller
8051 microcontroller
chirag patil
 
Stack Operations
Stack Operations Stack Operations
Stack Operations
RidaZaman1
 
Assembly Language Programming By Ytha Yu, Charles Marut Chap 4 (Introduction ...
Assembly Language Programming By Ytha Yu, Charles Marut Chap 4 (Introduction ...Assembly Language Programming By Ytha Yu, Charles Marut Chap 4 (Introduction ...
Assembly Language Programming By Ytha Yu, Charles Marut Chap 4 (Introduction ...
Bilal Amjad
 
Intermediate code generation1
Intermediate code generation1Intermediate code generation1
Intermediate code generation1Shashwat Shriparv
 
Register Transfer Language,Bus and Memory Transfer
Register Transfer Language,Bus and Memory TransferRegister Transfer Language,Bus and Memory Transfer
Register Transfer Language,Bus and Memory Transfer
lavanya marichamy
 
Instruction codes
Instruction codesInstruction codes
Instruction codes
pradeepa velmurugan
 
Microprocessor Interfacing and 8155 Features
Microprocessor Interfacing and 8155 FeaturesMicroprocessor Interfacing and 8155 Features
Microprocessor Interfacing and 8155 Features
Srikrishna Thota
 
Instruction set of 8086
Instruction set of 8086Instruction set of 8086
Instruction set of 8086aviban
 
8086 instruction set (with simulator)
8086 instruction set (with simulator)8086 instruction set (with simulator)
8086 instruction set (with simulator)
Aswini Dharmaraj
 
intel 8086 introduction
intel 8086 introductionintel 8086 introduction
intel 8086 introduction
Homoud Alsohaibi
 
LR(1) CLR(1) Parser with Example
LR(1) CLR(1) Parser with ExampleLR(1) CLR(1) Parser with Example
LR(1) CLR(1) Parser with Example
Muhammad Haroon
 
Tokens_C
Tokens_CTokens_C
Tokens_C
Prabhu Govind
 
Register transfer language
Register  transfer languageRegister  transfer language
Register transfer language
hamza munir
 
Linker and Loader
Linker and Loader Linker and Loader
Linker and Loader
sonalikharade3
 
Microprocessor 8086 instruction description
Microprocessor 8086 instruction descriptionMicroprocessor 8086 instruction description
Microprocessor 8086 instruction description
Dheeraj Suri
 
Instruction set of 8086
Instruction set of 8086Instruction set of 8086
Instruction set of 8086
Tirumalesh Nizampatnam
 
8086 Instruction set
8086 Instruction set8086 Instruction set
8086 Instruction set
karthiga selvaraju
 

What's hot (20)

Instruction Set Architecture: MIPS
Instruction Set Architecture: MIPSInstruction Set Architecture: MIPS
Instruction Set Architecture: MIPS
 
Register & flags
Register & flagsRegister & flags
Register & flags
 
Instruction formats-in-8086
Instruction formats-in-8086Instruction formats-in-8086
Instruction formats-in-8086
 
8051 microcontroller
8051 microcontroller8051 microcontroller
8051 microcontroller
 
Stack Operations
Stack Operations Stack Operations
Stack Operations
 
Assembly Language Programming By Ytha Yu, Charles Marut Chap 4 (Introduction ...
Assembly Language Programming By Ytha Yu, Charles Marut Chap 4 (Introduction ...Assembly Language Programming By Ytha Yu, Charles Marut Chap 4 (Introduction ...
Assembly Language Programming By Ytha Yu, Charles Marut Chap 4 (Introduction ...
 
Intermediate code generation1
Intermediate code generation1Intermediate code generation1
Intermediate code generation1
 
Register Transfer Language,Bus and Memory Transfer
Register Transfer Language,Bus and Memory TransferRegister Transfer Language,Bus and Memory Transfer
Register Transfer Language,Bus and Memory Transfer
 
Instruction codes
Instruction codesInstruction codes
Instruction codes
 
Microprocessor Interfacing and 8155 Features
Microprocessor Interfacing and 8155 FeaturesMicroprocessor Interfacing and 8155 Features
Microprocessor Interfacing and 8155 Features
 
Instruction set of 8086
Instruction set of 8086Instruction set of 8086
Instruction set of 8086
 
8086 instruction set (with simulator)
8086 instruction set (with simulator)8086 instruction set (with simulator)
8086 instruction set (with simulator)
 
intel 8086 introduction
intel 8086 introductionintel 8086 introduction
intel 8086 introduction
 
LR(1) CLR(1) Parser with Example
LR(1) CLR(1) Parser with ExampleLR(1) CLR(1) Parser with Example
LR(1) CLR(1) Parser with Example
 
Tokens_C
Tokens_CTokens_C
Tokens_C
 
Register transfer language
Register  transfer languageRegister  transfer language
Register transfer language
 
Linker and Loader
Linker and Loader Linker and Loader
Linker and Loader
 
Microprocessor 8086 instruction description
Microprocessor 8086 instruction descriptionMicroprocessor 8086 instruction description
Microprocessor 8086 instruction description
 
Instruction set of 8086
Instruction set of 8086Instruction set of 8086
Instruction set of 8086
 
8086 Instruction set
8086 Instruction set8086 Instruction set
8086 Instruction set
 

Viewers also liked

Data Science and Big Data Analytics Book from EMC Education Services
Data Science and Big Data Analytics Book from EMC Education ServicesData Science and Big Data Analytics Book from EMC Education Services
Data Science and Big Data Analytics Book from EMC Education ServicesEMC
 
Big Data/DIG: Domain-Specific Insight Graphs by Pedro Szekely of ISI/USC
Big Data/DIG: Domain-Specific Insight Graphs by Pedro Szekely of ISI/USCBig Data/DIG: Domain-Specific Insight Graphs by Pedro Szekely of ISI/USC
Big Data/DIG: Domain-Specific Insight Graphs by Pedro Szekely of ISI/USC
ETCenter
 
Biometrics based key generation
Biometrics based key generationBiometrics based key generation
Biometrics based key generation
Piyush Rochwani
 
EMC config Hadoop
EMC config HadoopEMC config Hadoop
EMC config Hadoop
solarisyougood
 
Instruction set of 8086 Microprocessor
Instruction set of 8086 Microprocessor Instruction set of 8086 Microprocessor
Instruction set of 8086 Microprocessor
Velalar College of Engineering and Technology
 
Unit 3
Unit 3Unit 3
Unit 2
Unit 2Unit 2
Pipelining and co processor.
Pipelining and co processor.Pipelining and co processor.
Pipelining and co processor.Piyush Rochwani
 
Instruction Set of 8086 Microprocessor
Instruction Set of 8086 MicroprocessorInstruction Set of 8086 Microprocessor
Instruction Set of 8086 Microprocessor
Ashita Agrawal
 
Big data lecture notes
Big data lecture notesBig data lecture notes
Big data lecture notes
Mohit Saini
 
Instruction set of 8086
Instruction set of 8086Instruction set of 8086
Instruction set of 80869840596838
 
Hadoop Analytics + Enterprise Class Storage: One-Stop Solution From EMC for H...
Hadoop Analytics + Enterprise Class Storage: One-Stop Solution From EMC for H...Hadoop Analytics + Enterprise Class Storage: One-Stop Solution From EMC for H...
Hadoop Analytics + Enterprise Class Storage: One-Stop Solution From EMC for H...
EMC
 

Viewers also liked (20)

Android os
Android osAndroid os
Android os
 
Big Data Analysis Starts with R
Big Data Analysis Starts with RBig Data Analysis Starts with R
Big Data Analysis Starts with R
 
Data Science and Big Data Analytics Book from EMC Education Services
Data Science and Big Data Analytics Book from EMC Education ServicesData Science and Big Data Analytics Book from EMC Education Services
Data Science and Big Data Analytics Book from EMC Education Services
 
Big Data/DIG: Domain-Specific Insight Graphs by Pedro Szekely of ISI/USC
Big Data/DIG: Domain-Specific Insight Graphs by Pedro Szekely of ISI/USCBig Data/DIG: Domain-Specific Insight Graphs by Pedro Szekely of ISI/USC
Big Data/DIG: Domain-Specific Insight Graphs by Pedro Szekely of ISI/USC
 
Biometrics based key generation
Biometrics based key generationBiometrics based key generation
Biometrics based key generation
 
EMC config Hadoop
EMC config HadoopEMC config Hadoop
EMC config Hadoop
 
05 multiply divide
05 multiply divide05 multiply divide
05 multiply divide
 
Instruction set of 8086 Microprocessor
Instruction set of 8086 Microprocessor Instruction set of 8086 Microprocessor
Instruction set of 8086 Microprocessor
 
Raid
Raid Raid
Raid
 
Air pollution in mumbai
Air pollution in mumbaiAir pollution in mumbai
Air pollution in mumbai
 
Unit 3
Unit 3Unit 3
Unit 3
 
Unit 2
Unit 2Unit 2
Unit 2
 
Pipelining and co processor.
Pipelining and co processor.Pipelining and co processor.
Pipelining and co processor.
 
Instruction Set of 8086 Microprocessor
Instruction Set of 8086 MicroprocessorInstruction Set of 8086 Microprocessor
Instruction Set of 8086 Microprocessor
 
Big data lecture notes
Big data lecture notesBig data lecture notes
Big data lecture notes
 
Serial transmission
Serial transmissionSerial transmission
Serial transmission
 
06 floating point
06 floating point06 floating point
06 floating point
 
Instruction set of 8086
Instruction set of 8086Instruction set of 8086
Instruction set of 8086
 
Paging and segmentation
Paging and segmentationPaging and segmentation
Paging and segmentation
 
Hadoop Analytics + Enterprise Class Storage: One-Stop Solution From EMC for H...
Hadoop Analytics + Enterprise Class Storage: One-Stop Solution From EMC for H...Hadoop Analytics + Enterprise Class Storage: One-Stop Solution From EMC for H...
Hadoop Analytics + Enterprise Class Storage: One-Stop Solution From EMC for H...
 

Similar to 8086 Microprocessor

Intel µp instruction encoding and decoding
Intel µp instruction encoding and decodingIntel µp instruction encoding and decoding
Intel µp instruction encoding and decoding
yocirem
 
Module 2 instruction set
Module 2 instruction set Module 2 instruction set
Module 2 instruction set
Deepak John
 
Advanced Microprocessors
Advanced MicroprocessorsAdvanced Microprocessors
Advanced Microprocessors
BuddiesSairamit
 
viva q&a for mp lab
viva q&a for mp labviva q&a for mp lab
viva q&a for mp lab
g yugandhar srinivas
 
Microprocessor instructions
Microprocessor instructionsMicroprocessor instructions
Microprocessor instructions
hepzijustin
 
instruction codes
instruction codesinstruction codes
instruction codes
SangeethaSasi1
 
assignment 1-MC.pdf
assignment 1-MC.pdfassignment 1-MC.pdf
assignment 1-MC.pdf
SANTHAKUMARP5
 
microprocessor
 microprocessor microprocessor
microprocessor
ATTO RATHORE
 
Micro overview
Micro overviewMicro overview
Micro overview
lamamokalled
 
Qb microprocessors
Qb microprocessorsQb microprocessors
Qb microprocessors
Neelam Kapoor
 
The microprocessor and it's architecture
The microprocessor and it's architectureThe microprocessor and it's architecture
The microprocessor and it's architecture
samaa ali
 
16-bit Microprocessor Design (2005)
16-bit Microprocessor Design (2005)16-bit Microprocessor Design (2005)
16-bit Microprocessor Design (2005)
Susam Pal
 
Microprocessor note
Microprocessor noteMicroprocessor note
Microprocessor note
alokbhatta
 
Pdemodule 4
Pdemodule 4Pdemodule 4
Pdemodule 4
neerajtcr1990
 
Computer architecture instruction formats
Computer architecture instruction formatsComputer architecture instruction formats
Computer architecture instruction formats
Mazin Alwaaly
 
Xcs 234 microprocessors
Xcs 234 microprocessorsXcs 234 microprocessors
Xcs 234 microprocessorssweta suman
 
8085 (1)
8085 (1)8085 (1)
8085 (1)
Mani Kandan K
 
COA Lecture 01(Introduction).pptx
COA Lecture 01(Introduction).pptxCOA Lecture 01(Introduction).pptx
COA Lecture 01(Introduction).pptx
syed rafi
 
Lect05 Prog Model
Lect05 Prog ModelLect05 Prog Model
Lect05 Prog Model
anoosdomain
 

Similar to 8086 Microprocessor (20)

Intel µp instruction encoding and decoding
Intel µp instruction encoding and decodingIntel µp instruction encoding and decoding
Intel µp instruction encoding and decoding
 
Module 2 instruction set
Module 2 instruction set Module 2 instruction set
Module 2 instruction set
 
Advanced Microprocessors
Advanced MicroprocessorsAdvanced Microprocessors
Advanced Microprocessors
 
viva q&a for mp lab
viva q&a for mp labviva q&a for mp lab
viva q&a for mp lab
 
Microprocessor instructions
Microprocessor instructionsMicroprocessor instructions
Microprocessor instructions
 
instruction codes
instruction codesinstruction codes
instruction codes
 
assignment 1-MC.pdf
assignment 1-MC.pdfassignment 1-MC.pdf
assignment 1-MC.pdf
 
microprocessor
 microprocessor microprocessor
microprocessor
 
מצגת פרויקט
מצגת פרויקטמצגת פרויקט
מצגת פרויקט
 
Micro overview
Micro overviewMicro overview
Micro overview
 
Qb microprocessors
Qb microprocessorsQb microprocessors
Qb microprocessors
 
The microprocessor and it's architecture
The microprocessor and it's architectureThe microprocessor and it's architecture
The microprocessor and it's architecture
 
16-bit Microprocessor Design (2005)
16-bit Microprocessor Design (2005)16-bit Microprocessor Design (2005)
16-bit Microprocessor Design (2005)
 
Microprocessor note
Microprocessor noteMicroprocessor note
Microprocessor note
 
Pdemodule 4
Pdemodule 4Pdemodule 4
Pdemodule 4
 
Computer architecture instruction formats
Computer architecture instruction formatsComputer architecture instruction formats
Computer architecture instruction formats
 
Xcs 234 microprocessors
Xcs 234 microprocessorsXcs 234 microprocessors
Xcs 234 microprocessors
 
8085 (1)
8085 (1)8085 (1)
8085 (1)
 
COA Lecture 01(Introduction).pptx
COA Lecture 01(Introduction).pptxCOA Lecture 01(Introduction).pptx
COA Lecture 01(Introduction).pptx
 
Lect05 Prog Model
Lect05 Prog ModelLect05 Prog Model
Lect05 Prog Model
 

More from Piyush Rochwani

Sequential and combinational alu
Sequential and combinational alu Sequential and combinational alu
Sequential and combinational alu Piyush Rochwani
 
Page replacement algorithms
Page replacement algorithmsPage replacement algorithms
Page replacement algorithmsPiyush Rochwani
 
Solid state solid state drives
Solid state solid state drivesSolid state solid state drives
Solid state solid state drivesPiyush Rochwani
 
Booth’s algorithm.(a014& a015)
Booth’s algorithm.(a014& a015)Booth’s algorithm.(a014& a015)
Booth’s algorithm.(a014& a015)Piyush Rochwani
 

More from Piyush Rochwani (11)

Sequential and combinational alu
Sequential and combinational alu Sequential and combinational alu
Sequential and combinational alu
 
Memory virtualization
Memory virtualizationMemory virtualization
Memory virtualization
 
Risc
RiscRisc
Risc
 
Page replacement algorithms
Page replacement algorithmsPage replacement algorithms
Page replacement algorithms
 
Dma
DmaDma
Dma
 
Control unit
Control unitControl unit
Control unit
 
Memory types
Memory typesMemory types
Memory types
 
Solid state solid state drives
Solid state solid state drivesSolid state solid state drives
Solid state solid state drives
 
Coa INTERUPT
Coa INTERUPTCoa INTERUPT
Coa INTERUPT
 
Cisc(a022& a023)
Cisc(a022& a023)Cisc(a022& a023)
Cisc(a022& a023)
 
Booth’s algorithm.(a014& a015)
Booth’s algorithm.(a014& a015)Booth’s algorithm.(a014& a015)
Booth’s algorithm.(a014& a015)
 

Recently uploaded

How to Create Map Views in the Odoo 17 ERP
How to Create Map Views in the Odoo 17 ERPHow to Create Map Views in the Odoo 17 ERP
How to Create Map Views in the Odoo 17 ERP
Celine George
 
Supporting (UKRI) OA monographs at Salford.pptx
Supporting (UKRI) OA monographs at Salford.pptxSupporting (UKRI) OA monographs at Salford.pptx
Supporting (UKRI) OA monographs at Salford.pptx
Jisc
 
PART A. Introduction to Costumer Service
PART A. Introduction to Costumer ServicePART A. Introduction to Costumer Service
PART A. Introduction to Costumer Service
PedroFerreira53928
 
How to Split Bills in the Odoo 17 POS Module
How to Split Bills in the Odoo 17 POS ModuleHow to Split Bills in the Odoo 17 POS Module
How to Split Bills in the Odoo 17 POS Module
Celine George
 
Template Jadual Bertugas Kelas (Boleh Edit)
Template Jadual Bertugas Kelas (Boleh Edit)Template Jadual Bertugas Kelas (Boleh Edit)
Template Jadual Bertugas Kelas (Boleh Edit)
rosedainty
 
Ethnobotany and Ethnopharmacology ......
Ethnobotany and Ethnopharmacology ......Ethnobotany and Ethnopharmacology ......
Ethnobotany and Ethnopharmacology ......
Ashokrao Mane college of Pharmacy Peth-Vadgaon
 
Digital Tools and AI for Teaching Learning and Research
Digital Tools and AI for Teaching Learning and ResearchDigital Tools and AI for Teaching Learning and Research
Digital Tools and AI for Teaching Learning and Research
Vikramjit Singh
 
Additional Benefits for Employee Website.pdf
Additional Benefits for Employee Website.pdfAdditional Benefits for Employee Website.pdf
Additional Benefits for Employee Website.pdf
joachimlavalley1
 
Operation Blue Star - Saka Neela Tara
Operation Blue Star   -  Saka Neela TaraOperation Blue Star   -  Saka Neela Tara
Operation Blue Star - Saka Neela Tara
Balvir Singh
 
Chapter 3 - Islamic Banking Products and Services.pptx
Chapter 3 - Islamic Banking Products and Services.pptxChapter 3 - Islamic Banking Products and Services.pptx
Chapter 3 - Islamic Banking Products and Services.pptx
Mohd Adib Abd Muin, Senior Lecturer at Universiti Utara Malaysia
 
special B.ed 2nd year old paper_20240531.pdf
special B.ed 2nd year old paper_20240531.pdfspecial B.ed 2nd year old paper_20240531.pdf
special B.ed 2nd year old paper_20240531.pdf
Special education needs
 
The Art Pastor's Guide to Sabbath | Steve Thomason
The Art Pastor's Guide to Sabbath | Steve ThomasonThe Art Pastor's Guide to Sabbath | Steve Thomason
The Art Pastor's Guide to Sabbath | Steve Thomason
Steve Thomason
 
ESC Beyond Borders _From EU to You_ InfoPack general.pdf
ESC Beyond Borders _From EU to You_ InfoPack general.pdfESC Beyond Borders _From EU to You_ InfoPack general.pdf
ESC Beyond Borders _From EU to You_ InfoPack general.pdf
Fundacja Rozwoju Społeczeństwa Przedsiębiorczego
 
Welcome to TechSoup New Member Orientation and Q&A (May 2024).pdf
Welcome to TechSoup   New Member Orientation and Q&A (May 2024).pdfWelcome to TechSoup   New Member Orientation and Q&A (May 2024).pdf
Welcome to TechSoup New Member Orientation and Q&A (May 2024).pdf
TechSoup
 
Basic phrases for greeting and assisting costumers
Basic phrases for greeting and assisting costumersBasic phrases for greeting and assisting costumers
Basic phrases for greeting and assisting costumers
PedroFerreira53928
 
Introduction to Quality Improvement Essentials
Introduction to Quality Improvement EssentialsIntroduction to Quality Improvement Essentials
Introduction to Quality Improvement Essentials
Excellence Foundation for South Sudan
 
MARUTI SUZUKI- A Successful Joint Venture in India.pptx
MARUTI SUZUKI- A Successful Joint Venture in India.pptxMARUTI SUZUKI- A Successful Joint Venture in India.pptx
MARUTI SUZUKI- A Successful Joint Venture in India.pptx
bennyroshan06
 
The French Revolution Class 9 Study Material pdf free download
The French Revolution Class 9 Study Material pdf free downloadThe French Revolution Class 9 Study Material pdf free download
The French Revolution Class 9 Study Material pdf free download
Vivekanand Anglo Vedic Academy
 
Sha'Carri Richardson Presentation 202345
Sha'Carri Richardson Presentation 202345Sha'Carri Richardson Presentation 202345
Sha'Carri Richardson Presentation 202345
beazzy04
 
Sectors of the Indian Economy - Class 10 Study Notes pdf
Sectors of the Indian Economy - Class 10 Study Notes pdfSectors of the Indian Economy - Class 10 Study Notes pdf
Sectors of the Indian Economy - Class 10 Study Notes pdf
Vivekanand Anglo Vedic Academy
 

Recently uploaded (20)

How to Create Map Views in the Odoo 17 ERP
How to Create Map Views in the Odoo 17 ERPHow to Create Map Views in the Odoo 17 ERP
How to Create Map Views in the Odoo 17 ERP
 
Supporting (UKRI) OA monographs at Salford.pptx
Supporting (UKRI) OA monographs at Salford.pptxSupporting (UKRI) OA monographs at Salford.pptx
Supporting (UKRI) OA monographs at Salford.pptx
 
PART A. Introduction to Costumer Service
PART A. Introduction to Costumer ServicePART A. Introduction to Costumer Service
PART A. Introduction to Costumer Service
 
How to Split Bills in the Odoo 17 POS Module
How to Split Bills in the Odoo 17 POS ModuleHow to Split Bills in the Odoo 17 POS Module
How to Split Bills in the Odoo 17 POS Module
 
Template Jadual Bertugas Kelas (Boleh Edit)
Template Jadual Bertugas Kelas (Boleh Edit)Template Jadual Bertugas Kelas (Boleh Edit)
Template Jadual Bertugas Kelas (Boleh Edit)
 
Ethnobotany and Ethnopharmacology ......
Ethnobotany and Ethnopharmacology ......Ethnobotany and Ethnopharmacology ......
Ethnobotany and Ethnopharmacology ......
 
Digital Tools and AI for Teaching Learning and Research
Digital Tools and AI for Teaching Learning and ResearchDigital Tools and AI for Teaching Learning and Research
Digital Tools and AI for Teaching Learning and Research
 
Additional Benefits for Employee Website.pdf
Additional Benefits for Employee Website.pdfAdditional Benefits for Employee Website.pdf
Additional Benefits for Employee Website.pdf
 
Operation Blue Star - Saka Neela Tara
Operation Blue Star   -  Saka Neela TaraOperation Blue Star   -  Saka Neela Tara
Operation Blue Star - Saka Neela Tara
 
Chapter 3 - Islamic Banking Products and Services.pptx
Chapter 3 - Islamic Banking Products and Services.pptxChapter 3 - Islamic Banking Products and Services.pptx
Chapter 3 - Islamic Banking Products and Services.pptx
 
special B.ed 2nd year old paper_20240531.pdf
special B.ed 2nd year old paper_20240531.pdfspecial B.ed 2nd year old paper_20240531.pdf
special B.ed 2nd year old paper_20240531.pdf
 
The Art Pastor's Guide to Sabbath | Steve Thomason
The Art Pastor's Guide to Sabbath | Steve ThomasonThe Art Pastor's Guide to Sabbath | Steve Thomason
The Art Pastor's Guide to Sabbath | Steve Thomason
 
ESC Beyond Borders _From EU to You_ InfoPack general.pdf
ESC Beyond Borders _From EU to You_ InfoPack general.pdfESC Beyond Borders _From EU to You_ InfoPack general.pdf
ESC Beyond Borders _From EU to You_ InfoPack general.pdf
 
Welcome to TechSoup New Member Orientation and Q&A (May 2024).pdf
Welcome to TechSoup   New Member Orientation and Q&A (May 2024).pdfWelcome to TechSoup   New Member Orientation and Q&A (May 2024).pdf
Welcome to TechSoup New Member Orientation and Q&A (May 2024).pdf
 
Basic phrases for greeting and assisting costumers
Basic phrases for greeting and assisting costumersBasic phrases for greeting and assisting costumers
Basic phrases for greeting and assisting costumers
 
Introduction to Quality Improvement Essentials
Introduction to Quality Improvement EssentialsIntroduction to Quality Improvement Essentials
Introduction to Quality Improvement Essentials
 
MARUTI SUZUKI- A Successful Joint Venture in India.pptx
MARUTI SUZUKI- A Successful Joint Venture in India.pptxMARUTI SUZUKI- A Successful Joint Venture in India.pptx
MARUTI SUZUKI- A Successful Joint Venture in India.pptx
 
The French Revolution Class 9 Study Material pdf free download
The French Revolution Class 9 Study Material pdf free downloadThe French Revolution Class 9 Study Material pdf free download
The French Revolution Class 9 Study Material pdf free download
 
Sha'Carri Richardson Presentation 202345
Sha'Carri Richardson Presentation 202345Sha'Carri Richardson Presentation 202345
Sha'Carri Richardson Presentation 202345
 
Sectors of the Indian Economy - Class 10 Study Notes pdf
Sectors of the Indian Economy - Class 10 Study Notes pdfSectors of the Indian Economy - Class 10 Study Notes pdf
Sectors of the Indian Economy - Class 10 Study Notes pdf
 

8086 Microprocessor

  • 1. Instruction Set of 8086 Microprocessor
  • 2. What is Instruction Set  Instruction:- An instruction is a binary pattern designed inside a microprocessor to perform a specific function.  The complete collection of instructions that are understood by a CPU are known as instruction sets.
  • 3. Instruction set basics  Opcode:- It stands for operational code. It specifies the type of operation to be performed by CPU. It is the first field in the machine language instruction format.  E.g. 08 is the opcode for instruction “MOV X,Y”.  Operand:- We can also say it as data on which operation should act. operands may be register values or memory values. The CPU executes the instructions using information present in this field. It may be 8-bit data or 16-bit data.
  • 4. Instruction set basics  Assembler:- it converts the instruction into sequence of binary bits, so that this bits can be read by the processor.  Mnemonics:- these are the symbolic codes for either instructions or commands to perform a particular function.  E.g. MOV, ADD, SUB etc.
  • 6. Instruction Formats  In 8086 microprocessor there are following six types of 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.
  • 7. 1-Byte instruction  The instruction is 1-byte long in size.  It May contain implied data or register operands (data).  The least significant three bits of opcode are used for specifying register operand. Otherwise all the 8-bits creates an opcode.
  • 8. (2). Register to Register  The instruction is 2-byte long in size.  First byte of code denotes opcode & width of operand.  Second byte denotes register operands & R/M field. OPCODE D W 11 REG R/M D7 D0D1 D7 D5 D2 D0D6 D3
  • 9. (2). Register to Register  ‘REG’ field denotes type of register used.  ‘R/M’ field denotes register or memory location used.  If ‘W’ field is ‘0’ then operand is of 8-bits, & If ‘W’ field is ‘1’ then operand is of 16-bits.
  • 10. (3). Register to/from memory with no Displacement  The instruction is 2-byte long in size.  First byte of code denotes opcode & width of operand.  Second byte denotes mod,register operands & R/M field.
  • 11. (3). Register to/from memory with no Displacement  ‘MOD’ field denotes type of addressing mode used.  In case of no displacement the MOD=00 OPCODE W MOD REG R/M D7 D7 D6D0D1 D0D2D5 D3
  • 12. (4). Register to/from memory with Displacement  The instruction is 4-byte long in size.  First byte of code denotes opcode.  Second byte denotes register mod,register operands & R/M field.
  • 13. (4). Register to/from memory with Displacement  Third byte denotes lower byte of displacement.  Fourth byte denotes higher byte of displacement. OPCODE MOD REG R/M D7 D0 D0D7 D6 D2D3D5 Lower Byte of displacement Higher Byte of displacement D7 D0 D0D7
  • 14. (5). Immediate operand to register  The instruction is 4-byte long in size.  First byte of code denotes opcode.  Second byte denotes opcode,R/M field.
  • 15. (5). Immediate operand to register  Third byte denotes lower byte of data.  fourth byte denotes higher byte of data. OPCODE W 11 REG R/M D0 Lower Byte of data Higher Byte of data D7 D7 D6D5 D3 D0D2 D0D7 D0D7
  • 16. (6). Immediate operand to memory with 16- bit displacement  The instruction is 5 or 6-byte long in size.  First byte of code denotes opcode.  Second byte denotes register mod,opcode & R/M field.
  • 17. (6). Immediate operand to memory with 16- bit displacement  The remaining 4 bytes of data contains 2 bytes of displacement and 2 bytes of data. OPCODE MOD OPCOD E R/M D0 Lower Byte of displacement D7 D7 D6D5 D3 D2 D0D7D0 Higher Byte of displacement Lower Byte of data Higher Byte of data D7 D0D7D7 D0D0
  • 18. Instruction Cycle  Instruction is command which is given by the user to computer.  The time period during which one instruction is fetched from memory and execute when a computer given an instruction in machine language.  Each instruction is further divided into sequence of phases.  After the execution the program counter is incremented to point to the next instruction.
  • 19. Phases  Fetch an instruction from memory.  Decode the instruction.  Execute the instruction.
  • 20. Fetch Cycle  In this phase the sequence counter is initialized to 0.  The address of first instruction from PC is loaded into address register during the first clock cycle.
  • 21. Fetch Cycle 0002 Mov AC,0 Mov AC, 0 0000 0001 0002 0003 IRDecode unit Execute unit PC AC
  • 22. Decode Cycle  The instruction is decoded by the instruction decoder of a processor.  All the bits of the instruction under execution stored in IR are analyzed and decode in third clock cycle.
  • 24. Execute Cycle  In the last phase, the processor execute the instruction.  This involves setting the contents of the internal register AC to constant value 0.
  • 25. Execute Cycle 0003 AC 0 Mov AC,0 Mov AC, 0 0000 0001 0002 0003 IRDecode unit Execute unit PC AC