SlideShare a Scribd company logo
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

Danh sách HSG Bộ môn cấp trường - Cấp THPT.pdf
Danh sách HSG Bộ môn cấp trường - Cấp THPT.pdfDanh sách HSG Bộ môn cấp trường - Cấp THPT.pdf
Danh sách HSG Bộ môn cấp trường - Cấp THPT.pdfQucHHunhnh
 
Research Methods in Psychology | Cambridge AS Level | Cambridge Assessment In...
Research Methods in Psychology | Cambridge AS Level | Cambridge Assessment In...Research Methods in Psychology | Cambridge AS Level | Cambridge Assessment In...
Research Methods in Psychology | Cambridge AS Level | Cambridge Assessment In...Abhinav Gaur Kaptaan
 
Industrial Training Report- AKTU Industrial Training Report
Industrial Training Report- AKTU Industrial Training ReportIndustrial Training Report- AKTU Industrial Training Report
Industrial Training Report- AKTU Industrial Training ReportAvinash Rai
 
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 ThomasonSteve Thomason
 
Gyanartha SciBizTech Quiz slideshare.pptx
Gyanartha SciBizTech Quiz slideshare.pptxGyanartha SciBizTech Quiz slideshare.pptx
Gyanartha SciBizTech Quiz slideshare.pptxShibin Azad
 
PART A. Introduction to Costumer Service
PART A. Introduction to Costumer ServicePART A. Introduction to Costumer Service
PART A. Introduction to Costumer ServicePedroFerreira53928
 
The Last Leaf, a short story by O. Henry
The Last Leaf, a short story by O. HenryThe Last Leaf, a short story by O. Henry
The Last Leaf, a short story by O. HenryEugene Lysak
 
The impact of social media on mental health and well-being has been a topic o...
The impact of social media on mental health and well-being has been a topic o...The impact of social media on mental health and well-being has been a topic o...
The impact of social media on mental health and well-being has been a topic o...sanghavirahi2
 
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaasiemaillard
 
Matatag-Curriculum and the 21st Century Skills Presentation.pptx
Matatag-Curriculum and the 21st Century Skills Presentation.pptxMatatag-Curriculum and the 21st Century Skills Presentation.pptx
Matatag-Curriculum and the 21st Century Skills Presentation.pptxJenilouCasareno
 
UNIT – IV_PCI Complaints: Complaints and evaluation of complaints, Handling o...
UNIT – IV_PCI Complaints: Complaints and evaluation of complaints, Handling o...UNIT – IV_PCI Complaints: Complaints and evaluation of complaints, Handling o...
UNIT – IV_PCI Complaints: Complaints and evaluation of complaints, Handling o...Sayali Powar
 
[GDSC YCCE] Build with AI Online Presentation
[GDSC YCCE] Build with AI Online Presentation[GDSC YCCE] Build with AI Online Presentation
[GDSC YCCE] Build with AI Online PresentationGDSCYCCE
 
Basic Civil Engg Notes_Chapter-6_Environment Pollution & Engineering
Basic Civil Engg Notes_Chapter-6_Environment Pollution & EngineeringBasic Civil Engg Notes_Chapter-6_Environment Pollution & Engineering
Basic Civil Engg Notes_Chapter-6_Environment Pollution & EngineeringDenish Jangid
 
Pragya Champions Chalice 2024 Prelims & Finals Q/A set, General Quiz
Pragya Champions Chalice 2024 Prelims & Finals Q/A set, General QuizPragya Champions Chalice 2024 Prelims & Finals Q/A set, General Quiz
Pragya Champions Chalice 2024 Prelims & Finals Q/A set, General QuizPragya - UEM Kolkata Quiz Club
 
Basic_QTL_Marker-assisted_Selection_Sourabh.ppt
Basic_QTL_Marker-assisted_Selection_Sourabh.pptBasic_QTL_Marker-assisted_Selection_Sourabh.ppt
Basic_QTL_Marker-assisted_Selection_Sourabh.pptSourabh Kumar
 
Open Educational Resources Primer PowerPoint
Open Educational Resources Primer PowerPointOpen Educational Resources Primer PowerPoint
Open Educational Resources Primer PowerPointELaRue0
 
How to Manage Notification Preferences in the Odoo 17
How to Manage Notification Preferences in the Odoo 17How to Manage Notification Preferences in the Odoo 17
How to Manage Notification Preferences in the Odoo 17Celine George
 
GIÁO ÁN DẠY THÊM (KẾ HOẠCH BÀI BUỔI 2) - TIẾNG ANH 8 GLOBAL SUCCESS (2 CỘT) N...
GIÁO ÁN DẠY THÊM (KẾ HOẠCH BÀI BUỔI 2) - TIẾNG ANH 8 GLOBAL SUCCESS (2 CỘT) N...GIÁO ÁN DẠY THÊM (KẾ HOẠCH BÀI BUỔI 2) - TIẾNG ANH 8 GLOBAL SUCCESS (2 CỘT) N...
GIÁO ÁN DẠY THÊM (KẾ HOẠCH BÀI BUỔI 2) - TIẾNG ANH 8 GLOBAL SUCCESS (2 CỘT) N...Nguyen Thanh Tu Collection
 
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 costumersPedroFerreira53928
 

Recently uploaded (20)

Danh sách HSG Bộ môn cấp trường - Cấp THPT.pdf
Danh sách HSG Bộ môn cấp trường - Cấp THPT.pdfDanh sách HSG Bộ môn cấp trường - Cấp THPT.pdf
Danh sách HSG Bộ môn cấp trường - Cấp THPT.pdf
 
Research Methods in Psychology | Cambridge AS Level | Cambridge Assessment In...
Research Methods in Psychology | Cambridge AS Level | Cambridge Assessment In...Research Methods in Psychology | Cambridge AS Level | Cambridge Assessment In...
Research Methods in Psychology | Cambridge AS Level | Cambridge Assessment In...
 
Operations Management - Book1.p - Dr. Abdulfatah A. Salem
Operations Management - Book1.p  - Dr. Abdulfatah A. SalemOperations Management - Book1.p  - Dr. Abdulfatah A. Salem
Operations Management - Book1.p - Dr. Abdulfatah A. Salem
 
Industrial Training Report- AKTU Industrial Training Report
Industrial Training Report- AKTU Industrial Training ReportIndustrial Training Report- AKTU Industrial Training Report
Industrial Training Report- AKTU Industrial Training Report
 
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
 
Gyanartha SciBizTech Quiz slideshare.pptx
Gyanartha SciBizTech Quiz slideshare.pptxGyanartha SciBizTech Quiz slideshare.pptx
Gyanartha SciBizTech Quiz slideshare.pptx
 
PART A. Introduction to Costumer Service
PART A. Introduction to Costumer ServicePART A. Introduction to Costumer Service
PART A. Introduction to Costumer Service
 
The Last Leaf, a short story by O. Henry
The Last Leaf, a short story by O. HenryThe Last Leaf, a short story by O. Henry
The Last Leaf, a short story by O. Henry
 
The impact of social media on mental health and well-being has been a topic o...
The impact of social media on mental health and well-being has been a topic o...The impact of social media on mental health and well-being has been a topic o...
The impact of social media on mental health and well-being has been a topic o...
 
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
 
Matatag-Curriculum and the 21st Century Skills Presentation.pptx
Matatag-Curriculum and the 21st Century Skills Presentation.pptxMatatag-Curriculum and the 21st Century Skills Presentation.pptx
Matatag-Curriculum and the 21st Century Skills Presentation.pptx
 
UNIT – IV_PCI Complaints: Complaints and evaluation of complaints, Handling o...
UNIT – IV_PCI Complaints: Complaints and evaluation of complaints, Handling o...UNIT – IV_PCI Complaints: Complaints and evaluation of complaints, Handling o...
UNIT – IV_PCI Complaints: Complaints and evaluation of complaints, Handling o...
 
[GDSC YCCE] Build with AI Online Presentation
[GDSC YCCE] Build with AI Online Presentation[GDSC YCCE] Build with AI Online Presentation
[GDSC YCCE] Build with AI Online Presentation
 
Basic Civil Engg Notes_Chapter-6_Environment Pollution & Engineering
Basic Civil Engg Notes_Chapter-6_Environment Pollution & EngineeringBasic Civil Engg Notes_Chapter-6_Environment Pollution & Engineering
Basic Civil Engg Notes_Chapter-6_Environment Pollution & Engineering
 
Pragya Champions Chalice 2024 Prelims & Finals Q/A set, General Quiz
Pragya Champions Chalice 2024 Prelims & Finals Q/A set, General QuizPragya Champions Chalice 2024 Prelims & Finals Q/A set, General Quiz
Pragya Champions Chalice 2024 Prelims & Finals Q/A set, General Quiz
 
Basic_QTL_Marker-assisted_Selection_Sourabh.ppt
Basic_QTL_Marker-assisted_Selection_Sourabh.pptBasic_QTL_Marker-assisted_Selection_Sourabh.ppt
Basic_QTL_Marker-assisted_Selection_Sourabh.ppt
 
Open Educational Resources Primer PowerPoint
Open Educational Resources Primer PowerPointOpen Educational Resources Primer PowerPoint
Open Educational Resources Primer PowerPoint
 
How to Manage Notification Preferences in the Odoo 17
How to Manage Notification Preferences in the Odoo 17How to Manage Notification Preferences in the Odoo 17
How to Manage Notification Preferences in the Odoo 17
 
GIÁO ÁN DẠY THÊM (KẾ HOẠCH BÀI BUỔI 2) - TIẾNG ANH 8 GLOBAL SUCCESS (2 CỘT) N...
GIÁO ÁN DẠY THÊM (KẾ HOẠCH BÀI BUỔI 2) - TIẾNG ANH 8 GLOBAL SUCCESS (2 CỘT) N...GIÁO ÁN DẠY THÊM (KẾ HOẠCH BÀI BUỔI 2) - TIẾNG ANH 8 GLOBAL SUCCESS (2 CỘT) N...
GIÁO ÁN DẠY THÊM (KẾ HOẠCH BÀI BUỔI 2) - TIẾNG ANH 8 GLOBAL SUCCESS (2 CỘT) N...
 
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
 

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.