SlideShare una empresa de Scribd logo
1 de 26
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

Más contenido relacionado

La actualidad más candente

Instruction set-of-8085
Instruction set-of-8085Instruction set-of-8085
Instruction set-of-8085
saleForce
 
Logic, shift and rotate instruction
Logic, shift and rotate instructionLogic, shift and rotate instruction
Logic, shift and rotate instruction
kashif Shafqat
 

La actualidad más candente (20)

Instruction set of 8086
Instruction set of 8086Instruction set of 8086
Instruction set of 8086
 
8086 microprocessor
8086 microprocessor8086 microprocessor
8086 microprocessor
 
8086 String Instructions.pdf
8086 String Instructions.pdf8086 String Instructions.pdf
8086 String Instructions.pdf
 
Microprocessor 8086 instruction description
Microprocessor 8086 instruction descriptionMicroprocessor 8086 instruction description
Microprocessor 8086 instruction description
 
80486 microprocessor
80486 microprocessor80486 microprocessor
80486 microprocessor
 
8259 Programmable Interrupt Controller by vijay
8259 Programmable Interrupt Controller by vijay8259 Programmable Interrupt Controller by vijay
8259 Programmable Interrupt Controller by vijay
 
assembly flag resister
assembly flag resisterassembly flag resister
assembly flag resister
 
Instruction formats-in-8086
Instruction formats-in-8086Instruction formats-in-8086
Instruction formats-in-8086
 
Instruction set-of-8085
Instruction set-of-8085Instruction set-of-8085
Instruction set-of-8085
 
Instruction sets of 8086
Instruction sets of 8086Instruction sets of 8086
Instruction sets of 8086
 
Logic, shift and rotate instruction
Logic, shift and rotate instructionLogic, shift and rotate instruction
Logic, shift and rotate instruction
 
flag register of 8086
flag register of 8086flag register of 8086
flag register of 8086
 
06. thumb instructions
06. thumb instructions06. thumb instructions
06. thumb instructions
 
8259 Programmable Interrupt Controller
8259 Programmable Interrupt Controller8259 Programmable Interrupt Controller
8259 Programmable Interrupt Controller
 
I/O system in intel 80386 microcomputer architecture
I/O system in intel 80386 microcomputer architectureI/O system in intel 80386 microcomputer architecture
I/O system in intel 80386 microcomputer architecture
 
8086 instructions
8086 instructions8086 instructions
8086 instructions
 
PRESENTATION ON REAL ADDRESSING MODE AND VIRTUAL ADDRESSING MODE
PRESENTATION ON REAL ADDRESSING MODE AND VIRTUAL ADDRESSING MODEPRESENTATION ON REAL ADDRESSING MODE AND VIRTUAL ADDRESSING MODE
PRESENTATION ON REAL ADDRESSING MODE AND VIRTUAL ADDRESSING MODE
 
The ARM Architecture: ARM : ARM Architecture
The ARM Architecture: ARM : ARM ArchitectureThe ARM Architecture: ARM : ARM Architecture
The ARM Architecture: ARM : ARM Architecture
 
Advanced Pipelining in ARM Processors.pptx
Advanced Pipelining  in ARM Processors.pptxAdvanced Pipelining  in ARM Processors.pptx
Advanced Pipelining in ARM Processors.pptx
 
8085 Architecture & Memory Interfacing1
8085 Architecture & Memory Interfacing18085 Architecture & Memory Interfacing1
8085 Architecture & Memory Interfacing1
 

Destacado

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
EMC
 
Pipelining and co processor.
Pipelining and co processor.Pipelining and co processor.
Pipelining and co processor.
Piyush Rochwani
 
Instruction set of 8086
Instruction set of 8086Instruction set of 8086
Instruction set of 8086
9840596838
 

Destacado (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 a 8086 Microprocessor

Xcs 234 microprocessors
Xcs 234 microprocessorsXcs 234 microprocessors
Xcs 234 microprocessors
sweta suman
 

Similar a 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
 

Más de Piyush Rochwani

Más de 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)
 

Último

Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
ZurliaSoop
 
Spellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please PractiseSpellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please Practise
AnaAcapella
 

Último (20)

Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The Basics
 
Micro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdfMicro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdf
 
ICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptx
 
Fostering Friendships - Enhancing Social Bonds in the Classroom
Fostering Friendships - Enhancing Social Bonds  in the ClassroomFostering Friendships - Enhancing Social Bonds  in the Classroom
Fostering Friendships - Enhancing Social Bonds in the Classroom
 
On National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsOn National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan Fellows
 
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
 
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
 
Wellbeing inclusion and digital dystopias.pptx
Wellbeing inclusion and digital dystopias.pptxWellbeing inclusion and digital dystopias.pptx
Wellbeing inclusion and digital dystopias.pptx
 
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptxHMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
 
ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.
 
Google Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptxGoogle Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptx
 
How to setup Pycharm environment for Odoo 17.pptx
How to setup Pycharm environment for Odoo 17.pptxHow to setup Pycharm environment for Odoo 17.pptx
How to setup Pycharm environment for Odoo 17.pptx
 
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
 
How to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSHow to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POS
 
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
 
FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024
 
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxBasic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
 
Sociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning ExhibitSociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning Exhibit
 
Application orientated numerical on hev.ppt
Application orientated numerical on hev.pptApplication orientated numerical on hev.ppt
Application orientated numerical on hev.ppt
 
Spellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please PractiseSpellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please Practise
 

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