SlideShare a Scribd company logo
1 of 5
Download to read offline
Instruction
An instruction is just an order or command given to machine to do some specific task often
these instructions are written in high level language therefore we need to translate them into
machine format to execute them on hardware.
When high level instructions is translated into machine format it is converted in a
specific instruction format.
Opcode Operand
Such an instruction format has following two parts:-
Opcode ->specifies operation code
Operand->contains address or the operand itself on which operation is to be performed.
The instruction format may vary from one architecture to another. There are two types of
instruction format
(i)- Horizontal Format
(ii)- Vertical Format
A horizontal instruction format is faster then vertical instruction format involves additional
decoding to identify source and destination operand even to distinguish between the
operations.
Types of instruction
Depending upon the types of operations and no. Of operands the instruction have been
classified into different categories as given below.
On the basis of number of operands:-
(i)Zero Address Instruction.
(ii)One Address Instruction.
(iii)Two Address Instruction.
(iv)Three Address Instruction.
On the basis of types of operations:-
(i) Data Transfer Instruction.
(ii) Data Manipulation Instruction.
(iii) Program Control Instruction.
On the basis of number of operands:-
1. Zero Address Instruction.
Number of operand is given along with instruction.
Example PUSH, POP
2. One Address Instruction.
This instruction works with a single operand however the second operand is assumed as
accumulator.
Example
MUL A // Ac=Ac * A
INC CL // CL=CL*1
DEC AH // AH=AH-1
3. Two Address Instruction.
There are two operands used with an instruction to perform operations however the first
operand is treated as destination and source operand both
E.g
ADD A, B //A=A+B
SUB AX , C // AX= AX-C
MUL AX, AH //AC= AC* AH
Memory Variable --- A, B, C, D, a, b, c…….etc
Register variable Ax, Bx , Cy……etc
4. Three Address Instruction.
In a thrree address instruction there are three operands the first operand is treated as
destination operand where as the last two operand are treated as source operand.
For example
AX=BX+CX
On the basis of types of operations
1. Data Transfer Instruction
Such instruction are used to transfer data from one place to another however such instructions
are used to LOAD or STORE constant values within varibales or used to perform I/O
operations directly from input output ports.
2. Data Manipulation Instruction
Such instruction are used to perform different types of operations on the operands therfore
such instructions are further categorised into following sub categories
I. Airthmetic Instruction
II. Logical Instruction
III. Shift Microperation
Airthmetic Instruction
ADD Addition ADD Ax,Bx
SUB Substraction SUB A, C // A= A-C
MUL Multiplication MUL Ax,B // Ax =Ax*B
Logical operation
AND Logical AND AND AH, AL
OR Logical OR OR CL, 00H
NOT Logical NOT NOT Ac
XOR Logical XOR XOR AC , CL
Shift Microoperation
The shift microoperation are used to manipulate data contained within shift registers.
Depending upon types of shifting the shift microperation have been classififed into
following categories
1. Normal Shift
2. Arithmetic Shift
3. Circular Shift
1. Normal Shift
• Left Shift
it doubles the value
• Right shift
it half the values (integer division)
2. Arithmetic Shift
In a arithmetic shift when MSB or LSB gets vaccant due to shfting the privious LSB
or previous MSB is copied as it is at vaccant place respectively.
3. Circular Shift
In this Microoperation the bit that goes outwards due to shifting the bits either
leftwards or rightwards is going to be related back to be placed at vaccant
place. The circular shift microoperaetion is also called as rotation.
Shift Microinstruction
SHL --- Shift left
SHR ---Shift Right
ASHL ---Airthmetic Shift left
ASHR ----Arithmetic Shift Right
ROL---- Rotate Left
ROR ----Rotate Right
Cache Memory
It has been observed that practically that maximum of CPU time has been
wasted in executing common task or excessing common values in association
with loops therefore the concept of local memory of processor itself has been
evaluated improve the performance of computer.
The cache memory is an intermediate
memory placed in between the processor and the memory module it is called as
local memory of processor itself. It is based upon the concept of locality of
reference that is when the processor needs to access same value it checks the
cache for availabilty of data meanwhile the main memory is free to be accessed
by other operations.
There are two types of cache
1. L1 cache (inside processor)
2. L2 cache
The L1 cache is placed within processor itself and is fixed size whereas the L2
cache is placed outside the processor which is reconfigurable.

More Related Content

What's hot

Addressing modes/Addressing Mode with illustration/ Addressing mode in 8086
Addressing modes/Addressing Mode with illustration/ Addressing mode in 8086Addressing modes/Addressing Mode with illustration/ Addressing mode in 8086
Addressing modes/Addressing Mode with illustration/ Addressing mode in 8086samirbharat77
 
Addressing modes
Addressing modesAddressing modes
Addressing modesMukta Garg
 
Instruction Set Architecture (ISA)
Instruction Set Architecture (ISA)Instruction Set Architecture (ISA)
Instruction Set Architecture (ISA)Gaditek
 
instruction format and addressing modes
instruction format and addressing modesinstruction format and addressing modes
instruction format and addressing modesRamaPrabha24
 
Computer architecture addressing modes and formats
Computer architecture addressing modes and formatsComputer architecture addressing modes and formats
Computer architecture addressing modes and formatsMazin Alwaaly
 
Datapath Design of Computer Architecture
Datapath Design of Computer ArchitectureDatapath Design of Computer Architecture
Datapath Design of Computer ArchitectureAbu Zaman
 
Instruction set (prasenjit dey)
Instruction set (prasenjit dey)Instruction set (prasenjit dey)
Instruction set (prasenjit dey)Prasenjit Dey
 
Central processing unit and stack organization r013
Central processing unit and stack organization   r013Central processing unit and stack organization   r013
Central processing unit and stack organization r013arunachalamr16
 
Broad-sense Synchronous Circuits on Partially Ordered Time
Broad-sense Synchronous Circuits on Partially Ordered TimeBroad-sense Synchronous Circuits on Partially Ordered Time
Broad-sense Synchronous Circuits on Partially Ordered TimeShunji Nishimura
 
Computer architecture instruction formats
Computer architecture instruction formatsComputer architecture instruction formats
Computer architecture instruction formatsMazin Alwaaly
 

What's hot (19)

Instruction format
Instruction formatInstruction format
Instruction format
 
Memory reference
Memory referenceMemory reference
Memory reference
 
Addressing modes/Addressing Mode with illustration/ Addressing mode in 8086
Addressing modes/Addressing Mode with illustration/ Addressing mode in 8086Addressing modes/Addressing Mode with illustration/ Addressing mode in 8086
Addressing modes/Addressing Mode with illustration/ Addressing mode in 8086
 
Addressing modes
Addressing modesAddressing modes
Addressing modes
 
Instruction Set Architecture (ISA)
Instruction Set Architecture (ISA)Instruction Set Architecture (ISA)
Instruction Set Architecture (ISA)
 
instruction format and addressing modes
instruction format and addressing modesinstruction format and addressing modes
instruction format and addressing modes
 
Instruction codes
Instruction codesInstruction codes
Instruction codes
 
Addressing modes ppt
Addressing modes pptAddressing modes ppt
Addressing modes ppt
 
Addressing modes
Addressing modesAddressing modes
Addressing modes
 
Computer architecture addressing modes and formats
Computer architecture addressing modes and formatsComputer architecture addressing modes and formats
Computer architecture addressing modes and formats
 
CO by Rakesh Roshan
CO by Rakesh RoshanCO by Rakesh Roshan
CO by Rakesh Roshan
 
Different addressing mode and risc, cisc microprocessor
Different addressing mode and risc, cisc microprocessorDifferent addressing mode and risc, cisc microprocessor
Different addressing mode and risc, cisc microprocessor
 
Datapath Design of Computer Architecture
Datapath Design of Computer ArchitectureDatapath Design of Computer Architecture
Datapath Design of Computer Architecture
 
Instruction set (prasenjit dey)
Instruction set (prasenjit dey)Instruction set (prasenjit dey)
Instruction set (prasenjit dey)
 
Central processing unit and stack organization r013
Central processing unit and stack organization   r013Central processing unit and stack organization   r013
Central processing unit and stack organization r013
 
Broad-sense Synchronous Circuits on Partially Ordered Time
Broad-sense Synchronous Circuits on Partially Ordered TimeBroad-sense Synchronous Circuits on Partially Ordered Time
Broad-sense Synchronous Circuits on Partially Ordered Time
 
Computer architecture instruction formats
Computer architecture instruction formatsComputer architecture instruction formats
Computer architecture instruction formats
 
ADDRESSING MODE
ADDRESSING MODEADDRESSING MODE
ADDRESSING MODE
 
Pipeline r014
Pipeline   r014Pipeline   r014
Pipeline r014
 

Viewers also liked

Explanation Of Instructions
Explanation Of InstructionsExplanation Of Instructions
Explanation Of Instructionsfaceise
 
Sintesis informativa 02 23 2016
Sintesis informativa 02 23 2016Sintesis informativa 02 23 2016
Sintesis informativa 02 23 2016megaradioexpress
 
Bio 120 presentation #3
Bio 120 presentation #3Bio 120 presentation #3
Bio 120 presentation #3ezzittie
 
Sintesis informativa 15 de abril 2016
Sintesis informativa 15 de abril 2016Sintesis informativa 15 de abril 2016
Sintesis informativa 15 de abril 2016megaradioexpress
 
Sintesis informativa 23 de diciembre de 2015
Sintesis informativa 23 de diciembre de 2015Sintesis informativa 23 de diciembre de 2015
Sintesis informativa 23 de diciembre de 2015megaradioexpress
 
Sintesis informativa 13 de enero 2016
Sintesis informativa 13 de enero 2016Sintesis informativa 13 de enero 2016
Sintesis informativa 13 de enero 2016megaradioexpress
 
Sintesis informativa 07 de julio 2016
Sintesis informativa 07 de julio 2016Sintesis informativa 07 de julio 2016
Sintesis informativa 07 de julio 2016megaradioexpress
 
Beginner's Guide to Google Drive
Beginner's Guide to Google DriveBeginner's Guide to Google Drive
Beginner's Guide to Google Drivejanice almada
 
Computer instructions
Computer instructionsComputer instructions
Computer instructionsAnuj Modi
 
Assembly Language Basics
Assembly Language BasicsAssembly Language Basics
Assembly Language BasicsEducation Front
 
Assembly Language Lecture 1
Assembly Language Lecture 1Assembly Language Lecture 1
Assembly Language Lecture 1Motaz Saad
 
Chapter 3 INSTRUCTION SET AND ASSEMBLY LANGUAGE PROGRAMMING
Chapter 3 INSTRUCTION SET AND ASSEMBLY LANGUAGE PROGRAMMINGChapter 3 INSTRUCTION SET AND ASSEMBLY LANGUAGE PROGRAMMING
Chapter 3 INSTRUCTION SET AND ASSEMBLY LANGUAGE PROGRAMMINGFrankie Jones
 
Types of instructions
Types of instructionsTypes of instructions
Types of instructionsihsanjamil
 
Unit 3 – assembly language programming
Unit 3 – assembly language programmingUnit 3 – assembly language programming
Unit 3 – assembly language programmingKartik Sharma
 
Assembly language programming(unit 4)
Assembly language programming(unit 4)Assembly language programming(unit 4)
Assembly language programming(unit 4)Ashim Saha
 

Viewers also liked (20)

Explanation Of Instructions
Explanation Of InstructionsExplanation Of Instructions
Explanation Of Instructions
 
Sintesis informativa 02 23 2016
Sintesis informativa 02 23 2016Sintesis informativa 02 23 2016
Sintesis informativa 02 23 2016
 
Trabajo
TrabajoTrabajo
Trabajo
 
Bio 120 presentation #3
Bio 120 presentation #3Bio 120 presentation #3
Bio 120 presentation #3
 
Sintesis informativa 15 de abril 2016
Sintesis informativa 15 de abril 2016Sintesis informativa 15 de abril 2016
Sintesis informativa 15 de abril 2016
 
Sintesis informativa 23 de diciembre de 2015
Sintesis informativa 23 de diciembre de 2015Sintesis informativa 23 de diciembre de 2015
Sintesis informativa 23 de diciembre de 2015
 
GallupReport
GallupReportGallupReport
GallupReport
 
Sintesis informativa 13 de enero 2016
Sintesis informativa 13 de enero 2016Sintesis informativa 13 de enero 2016
Sintesis informativa 13 de enero 2016
 
Sintesis informativa 07 de julio 2016
Sintesis informativa 07 de julio 2016Sintesis informativa 07 de julio 2016
Sintesis informativa 07 de julio 2016
 
sara hospital cv
sara hospital cvsara hospital cv
sara hospital cv
 
Smoking
SmokingSmoking
Smoking
 
КОРПОРАТИВНАЯ ПРЕЗЕНТАЦИЯ 2016
КОРПОРАТИВНАЯ ПРЕЗЕНТАЦИЯ 2016КОРПОРАТИВНАЯ ПРЕЗЕНТАЦИЯ 2016
КОРПОРАТИВНАЯ ПРЕЗЕНТАЦИЯ 2016
 
Beginner's Guide to Google Drive
Beginner's Guide to Google DriveBeginner's Guide to Google Drive
Beginner's Guide to Google Drive
 
Computer instructions
Computer instructionsComputer instructions
Computer instructions
 
Assembly Language Basics
Assembly Language BasicsAssembly Language Basics
Assembly Language Basics
 
Assembly Language Lecture 1
Assembly Language Lecture 1Assembly Language Lecture 1
Assembly Language Lecture 1
 
Chapter 3 INSTRUCTION SET AND ASSEMBLY LANGUAGE PROGRAMMING
Chapter 3 INSTRUCTION SET AND ASSEMBLY LANGUAGE PROGRAMMINGChapter 3 INSTRUCTION SET AND ASSEMBLY LANGUAGE PROGRAMMING
Chapter 3 INSTRUCTION SET AND ASSEMBLY LANGUAGE PROGRAMMING
 
Types of instructions
Types of instructionsTypes of instructions
Types of instructions
 
Unit 3 – assembly language programming
Unit 3 – assembly language programmingUnit 3 – assembly language programming
Unit 3 – assembly language programming
 
Assembly language programming(unit 4)
Assembly language programming(unit 4)Assembly language programming(unit 4)
Assembly language programming(unit 4)
 

Similar to Instruction

Similar to Instruction (20)

Cao
CaoCao
Cao
 
Bca examination 2016 csa
Bca examination 2016 csaBca examination 2016 csa
Bca examination 2016 csa
 
Lecture 10
Lecture 10Lecture 10
Lecture 10
 
Bc0040
Bc0040Bc0040
Bc0040
 
ITEC582-Chapter 12.pptx
ITEC582-Chapter 12.pptxITEC582-Chapter 12.pptx
ITEC582-Chapter 12.pptx
 
POLITEKNIK MALAYSIA
POLITEKNIK MALAYSIAPOLITEKNIK MALAYSIA
POLITEKNIK MALAYSIA
 
Computer Organization and 8085 microprocessor notes
Computer Organization and 8085 microprocessor notesComputer Organization and 8085 microprocessor notes
Computer Organization and 8085 microprocessor notes
 
Chapter 7
Chapter 7Chapter 7
Chapter 7
 
viva q&a for mp lab
viva q&a for mp labviva q&a for mp lab
viva q&a for mp lab
 
Instruction-Sets-2.pptx
Instruction-Sets-2.pptxInstruction-Sets-2.pptx
Instruction-Sets-2.pptx
 
Unit 1 ca-introduction
Unit 1 ca-introductionUnit 1 ca-introduction
Unit 1 ca-introduction
 
Assembly language.pptx
Assembly language.pptxAssembly language.pptx
Assembly language.pptx
 
module-3.pptx
module-3.pptxmodule-3.pptx
module-3.pptx
 
Microprocessor and Microcontroller.pptx
Microprocessor and Microcontroller.pptxMicroprocessor and Microcontroller.pptx
Microprocessor and Microcontroller.pptx
 
Bca examination 2015 csa
Bca examination 2015 csaBca examination 2015 csa
Bca examination 2015 csa
 
Data Transfer & Manipulation.pptx
Data Transfer & Manipulation.pptxData Transfer & Manipulation.pptx
Data Transfer & Manipulation.pptx
 
MPMC UNIT-2.pdf
MPMC UNIT-2.pdfMPMC UNIT-2.pdf
MPMC UNIT-2.pdf
 
Central processor organization
Central processor organizationCentral processor organization
Central processor organization
 
Basic non pipelined cpu architecture
Basic non pipelined cpu architectureBasic non pipelined cpu architecture
Basic non pipelined cpu architecture
 
Instruction sets of 8086
Instruction sets of 8086Instruction sets of 8086
Instruction sets of 8086
 

More from rprajat007

Introduction to Computer Graphics Notes
Introduction to Computer Graphics NotesIntroduction to Computer Graphics Notes
Introduction to Computer Graphics Notesrprajat007
 
Computer Networks for Computer Science Student
Computer Networks for Computer Science StudentComputer Networks for Computer Science Student
Computer Networks for Computer Science Studentrprajat007
 
An introduction to programming
An introduction to programmingAn introduction to programming
An introduction to programmingrprajat007
 
Operating system memory management
Operating system memory managementOperating system memory management
Operating system memory managementrprajat007
 
Difference between Micro Economics and Macro Economics
Difference between Micro Economics and Macro EconomicsDifference between Micro Economics and Macro Economics
Difference between Micro Economics and Macro Economicsrprajat007
 
Class and object in C++
Class and object in C++Class and object in C++
Class and object in C++rprajat007
 
Clean india mission
Clean india missionClean india mission
Clean india missionrprajat007
 

More from rprajat007 (7)

Introduction to Computer Graphics Notes
Introduction to Computer Graphics NotesIntroduction to Computer Graphics Notes
Introduction to Computer Graphics Notes
 
Computer Networks for Computer Science Student
Computer Networks for Computer Science StudentComputer Networks for Computer Science Student
Computer Networks for Computer Science Student
 
An introduction to programming
An introduction to programmingAn introduction to programming
An introduction to programming
 
Operating system memory management
Operating system memory managementOperating system memory management
Operating system memory management
 
Difference between Micro Economics and Macro Economics
Difference between Micro Economics and Macro EconomicsDifference between Micro Economics and Macro Economics
Difference between Micro Economics and Macro Economics
 
Class and object in C++
Class and object in C++Class and object in C++
Class and object in C++
 
Clean india mission
Clean india missionClean india mission
Clean india mission
 

Recently uploaded

This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.christianmathematics
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityGeoBlogs
 
APM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAPM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAssociation for Project Management
 
How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17Celine George
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdfQucHHunhnh
 
Unit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxUnit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxVishalSingh1417
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introductionMaksud Ahmed
 
Gardella_Mateo_IntellectualProperty.pdf.
Gardella_Mateo_IntellectualProperty.pdf.Gardella_Mateo_IntellectualProperty.pdf.
Gardella_Mateo_IntellectualProperty.pdf.MateoGardella
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxiammrhaywood
 
Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...
Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...
Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...Shubhangi Sonawane
 
Measures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDMeasures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDThiyagu K
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingTechSoup
 
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...christianmathematics
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfagholdier
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...EduSkills OECD
 
Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Celine George
 
Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactPECB
 
psychiatric nursing HISTORY COLLECTION .docx
psychiatric  nursing HISTORY  COLLECTION  .docxpsychiatric  nursing HISTORY  COLLECTION  .docx
psychiatric nursing HISTORY COLLECTION .docxPoojaSen20
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsTechSoup
 

Recently uploaded (20)

This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activity
 
APM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAPM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across Sectors
 
How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdf
 
Unit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxUnit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptx
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introduction
 
Gardella_Mateo_IntellectualProperty.pdf.
Gardella_Mateo_IntellectualProperty.pdf.Gardella_Mateo_IntellectualProperty.pdf.
Gardella_Mateo_IntellectualProperty.pdf.
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
 
Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...
Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...
Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...
 
Measures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDMeasures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SD
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy Consulting
 
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
 
Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdf
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
 
Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17
 
Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global Impact
 
psychiatric nursing HISTORY COLLECTION .docx
psychiatric  nursing HISTORY  COLLECTION  .docxpsychiatric  nursing HISTORY  COLLECTION  .docx
psychiatric nursing HISTORY COLLECTION .docx
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The Basics
 

Instruction

  • 1. Instruction An instruction is just an order or command given to machine to do some specific task often these instructions are written in high level language therefore we need to translate them into machine format to execute them on hardware. When high level instructions is translated into machine format it is converted in a specific instruction format. Opcode Operand Such an instruction format has following two parts:- Opcode ->specifies operation code Operand->contains address or the operand itself on which operation is to be performed. The instruction format may vary from one architecture to another. There are two types of instruction format (i)- Horizontal Format (ii)- Vertical Format A horizontal instruction format is faster then vertical instruction format involves additional decoding to identify source and destination operand even to distinguish between the operations. Types of instruction Depending upon the types of operations and no. Of operands the instruction have been classified into different categories as given below. On the basis of number of operands:- (i)Zero Address Instruction. (ii)One Address Instruction. (iii)Two Address Instruction. (iv)Three Address Instruction. On the basis of types of operations:- (i) Data Transfer Instruction. (ii) Data Manipulation Instruction. (iii) Program Control Instruction. On the basis of number of operands:- 1. Zero Address Instruction. Number of operand is given along with instruction. Example PUSH, POP 2. One Address Instruction. This instruction works with a single operand however the second operand is assumed as accumulator. Example
  • 2. MUL A // Ac=Ac * A INC CL // CL=CL*1 DEC AH // AH=AH-1 3. Two Address Instruction. There are two operands used with an instruction to perform operations however the first operand is treated as destination and source operand both E.g ADD A, B //A=A+B SUB AX , C // AX= AX-C MUL AX, AH //AC= AC* AH Memory Variable --- A, B, C, D, a, b, c…….etc Register variable Ax, Bx , Cy……etc 4. Three Address Instruction. In a thrree address instruction there are three operands the first operand is treated as destination operand where as the last two operand are treated as source operand. For example AX=BX+CX On the basis of types of operations 1. Data Transfer Instruction Such instruction are used to transfer data from one place to another however such instructions are used to LOAD or STORE constant values within varibales or used to perform I/O operations directly from input output ports. 2. Data Manipulation Instruction Such instruction are used to perform different types of operations on the operands therfore such instructions are further categorised into following sub categories I. Airthmetic Instruction II. Logical Instruction III. Shift Microperation Airthmetic Instruction ADD Addition ADD Ax,Bx SUB Substraction SUB A, C // A= A-C MUL Multiplication MUL Ax,B // Ax =Ax*B Logical operation AND Logical AND AND AH, AL OR Logical OR OR CL, 00H
  • 3. NOT Logical NOT NOT Ac XOR Logical XOR XOR AC , CL Shift Microoperation The shift microoperation are used to manipulate data contained within shift registers. Depending upon types of shifting the shift microperation have been classififed into following categories 1. Normal Shift 2. Arithmetic Shift 3. Circular Shift 1. Normal Shift • Left Shift it doubles the value • Right shift it half the values (integer division) 2. Arithmetic Shift In a arithmetic shift when MSB or LSB gets vaccant due to shfting the privious LSB or previous MSB is copied as it is at vaccant place respectively. 3. Circular Shift In this Microoperation the bit that goes outwards due to shifting the bits either
  • 4. leftwards or rightwards is going to be related back to be placed at vaccant place. The circular shift microoperaetion is also called as rotation. Shift Microinstruction SHL --- Shift left SHR ---Shift Right ASHL ---Airthmetic Shift left ASHR ----Arithmetic Shift Right ROL---- Rotate Left ROR ----Rotate Right Cache Memory It has been observed that practically that maximum of CPU time has been wasted in executing common task or excessing common values in association with loops therefore the concept of local memory of processor itself has been evaluated improve the performance of computer. The cache memory is an intermediate memory placed in between the processor and the memory module it is called as local memory of processor itself. It is based upon the concept of locality of reference that is when the processor needs to access same value it checks the cache for availabilty of data meanwhile the main memory is free to be accessed by other operations.
  • 5. There are two types of cache 1. L1 cache (inside processor) 2. L2 cache The L1 cache is placed within processor itself and is fixed size whereas the L2 cache is placed outside the processor which is reconfigurable.