SlideShare a Scribd company logo
Instruction Codes
Type of Instruction Codes
Overview

Unit 3 - Instruction Codes
Abhineet Anand
Computer Science and Engg. Department
University of Petroleum and Energy Studies, Dehradun

November 26, 2012

Abhineet Anand

Unit 3 - Instruction Codes
Instruction Codes
Type of Instruction Codes
Overview

Introduction
Operation Code
Operands

Instruction Codes

A Computer instruction is binary code that speciļ¬es a
sequence of micro operation for the Computer.
The Computer reads each instruction from memory and
places it in a control register.
The control then interprets the binary code of the
instruction and proceeds to execute it by issuing a
sequence of micro operations.

Abhineet Anand

Unit 3 - Instruction Codes
Instruction Codes
Type of Instruction Codes
Overview

Introduction
Operation Code
Operands

Instruction Codes

An instruction code is a group of bits that instruct the
computer to perform a speciļ¬c task.
It is usually divided into parts, each having its own
particular interpretation.
They are:
Operation Code, and
Operands.

The most basic part of an instruction code is its operation
part.

Abhineet Anand

Unit 3 - Instruction Codes
Instruction Codes
Type of Instruction Codes
Overview

Introduction
Operation Code
Operands

Operation Code

The Operation Code (OpCode) of an instruction is a group
of bits that deļ¬ne each operation such add, subtract,
multiply, shift, and complement.
It must consist of at least n bits for a given 2n distinct
operations.
Suppose we are having 64 (26 ) operation then the length
of OpCode will be 6.
The control unit decode the OpCode and do the required
operation.

Abhineet Anand

Unit 3 - Instruction Codes
Instruction Codes
Type of Instruction Codes
Overview

Introduction
Operation Code
Operands

Operands
The Operation must be performed on some data stored in
processor register or in memory.
Every Computer has its own particular instruction code
format.
The Simplest way to organize a computer is to have an
instruction code format with two parts.
The ļ¬rst part speciļ¬es the operation to be performed and
the second speciļ¬es an address.

Abhineet Anand

Unit 3 - Instruction Codes
Instruction Codes
Type of Instruction Codes
Overview

Type of Instruction Codes
Memory - Reference Instruction
Register - Reference Instruction
Input - Output Instruction

Instruction Codes

The Basic Computer has three instruction code formats.
The OpCode part of the instruction contains three bits and
the meaning of the remaining 13 bits depends on the
operation code encountered.
The three instruction code formats are:
Memory - Reference Instruction
Register - reference Instruction
Input - Output Operation

Abhineet Anand

Unit 3 - Instruction Codes
Instruction Codes
Type of Instruction Codes
Overview

Type of Instruction Codes
Memory - Reference Instruction
Register - Reference Instruction
Input - Output Instruction

Memory - Reference Instruction

A Memory-Reference instruction uses 12 bits to specify an
address and one bit to specify the addressing mode I.
I is equal to 0 for direct address and to 1 for indirect
address.

Abhineet Anand

Unit 3 - Instruction Codes
Instruction Codes
Type of Instruction Codes
Overview

Type of Instruction Codes
Memory - Reference Instruction
Register - Reference Instruction
Input - Output Instruction

Register - Reference Instruction
The Register - Reference instruction are recognized by the
operation code 111 with 0 in the leftmost bit (bit 15) of the
instruction.
It speciļ¬es an operation on or a test of the AC register.
An operand from memory is not needed, so the other 12
bits are used to specify the operation or test to be
executed.

Abhineet Anand

Unit 3 - Instruction Codes
Instruction Codes
Type of Instruction Codes
Overview

Type of Instruction Codes
Memory - Reference Instruction
Register - Reference Instruction
Input - Output Instruction

Input - Output Instruction

An Input- Output Instruction does not need a reference to
memory and recognized by the operation code 111 with a
1 in the left most bit of the instruction.
The remaining 12 bits are used to specify the type of
input-output operation or test performed.

Abhineet Anand

Unit 3 - Instruction Codes
Instruction Codes
Type of Instruction Codes
Overview

How to know type of instruction.
Table of Instruction.

OverView

The type of instruction is recognized from four bits in
position 12 through 15 of the instruction.
If the three opcode in position 12 to 14 are not equal to
111, the instruction is a memory-reference type.
If these bit position is equal to 111 and 15th position is 0,
the instruction is a register-reference type otherwise it is
Input- output type.

Abhineet Anand

Unit 3 - Instruction Codes
Instruction Codes
Type of Instruction Codes
Overview

How to know type of instruction.
Table of Instruction.

Becuase of three bits use in the operation code, its seems
that the computer is restricted to a maximum of eight
distinct operations.
However, by using other 12 bits, the total number of
instruction can exceed eight.
In fact, the total number of instruction chosen for the basic
computer is equal to 25.

Abhineet Anand

Unit 3 - Instruction Codes
Instruction Codes
Type of Instruction Codes
Overview

How to know type of instruction.
Table of Instruction.

Table of Instruction.
The symbol designation is a three-letter word and represents
an abbreviation intended for programmers and users.
Memory Reference Instructions

Abhineet Anand

Unit 3 - Instruction Codes
Instruction Codes
Type of Instruction Codes
Overview

How to know type of instruction.
Table of Instruction.

Table of Instruction
Register Reference Instructions

Abhineet Anand

Unit 3 - Instruction Codes
Instruction Codes
Type of Instruction Codes
Overview

How to know type of instruction.
Table of Instruction.

THANK YOU

Abhineet Anand

Unit 3 - Instruction Codes

More Related Content

What's hot

Bca 2nd sem-u-2.2-overview of register transfer, micro operations and basic c...
Bca 2nd sem-u-2.2-overview of register transfer, micro operations and basic c...Bca 2nd sem-u-2.2-overview of register transfer, micro operations and basic c...
Bca 2nd sem-u-2.2-overview of register transfer, micro operations and basic c...
Rai University
Ā 
MCA-I-COA- overview of register transfer, micro operations and basic computer...
MCA-I-COA- overview of register transfer, micro operations and basic computer...MCA-I-COA- overview of register transfer, micro operations and basic computer...
MCA-I-COA- overview of register transfer, micro operations and basic computer...
Rai University
Ā 
Instruction codes and computer registers
Instruction codes and computer registersInstruction codes and computer registers
Instruction codes and computer registers
mahesh kumar prajapat
Ā 
COMPUTER ORGANIZATION NOTES Unit 2
COMPUTER ORGANIZATION NOTES  Unit 2COMPUTER ORGANIZATION NOTES  Unit 2
COMPUTER ORGANIZATION NOTES Unit 2
Dr.MAYA NAYAK
Ā 
Basic computer organisation design
Basic computer organisation designBasic computer organisation design
Basic computer organisation design
Sanjeev Patel
Ā 
Basic computer organization
Basic computer organizationBasic computer organization
Basic computer organization
Nitesh Singh
Ā 
Central processor organization
Central processor organizationCentral processor organization
Central processor organization
Prof. Dr. K. Adisesha
Ā 
Architecture OF 8085
Architecture OF 8085Architecture OF 8085
Architecture OF 8085
muneer.k
Ā 
B.sc cs-ii-u-2.2-overview of register transfer, micro operations and basic co...
B.sc cs-ii-u-2.2-overview of register transfer, micro operations and basic co...B.sc cs-ii-u-2.2-overview of register transfer, micro operations and basic co...
B.sc cs-ii-u-2.2-overview of register transfer, micro operations and basic co...
Rai University
Ā 
Various type of register
Various type of registerVarious type of register
Various type of register
Muhammad Taqi Hassan Bukhari
Ā 
Computer organization
Computer organization Computer organization
Computer organization
vishnu973656
Ā 
Introduction to CPU registers
Introduction to CPU registersIntroduction to CPU registers
Introduction to CPU registers
Muhammad Waqas
Ā 
Chapter 2
Chapter 2Chapter 2
Addressing modes (detailed data path)
Addressing modes (detailed data path)Addressing modes (detailed data path)
Addressing modes (detailed data path)Mahesh Kumar Attri
Ā 
Basic Computer Organisation And Design
Basic Computer Organisation And DesignBasic Computer Organisation And Design
Basic Computer Organisation And Design
lavanya marichamy
Ā 
Pdemodule 4
Pdemodule 4Pdemodule 4
Pdemodule 4
neerajtcr1990
Ā 
Module 3 special purpose programmable devices and their interfacing
Module 3 special purpose programmable devices and their interfacingModule 3 special purpose programmable devices and their interfacing
Module 3 special purpose programmable devices and their interfacing
Deepak John
Ā 
Module 1 8086
Module 1 8086Module 1 8086
Module 1 8086
Deepak John
Ā 

What's hot (19)

Bca 2nd sem-u-2.2-overview of register transfer, micro operations and basic c...
Bca 2nd sem-u-2.2-overview of register transfer, micro operations and basic c...Bca 2nd sem-u-2.2-overview of register transfer, micro operations and basic c...
Bca 2nd sem-u-2.2-overview of register transfer, micro operations and basic c...
Ā 
MCA-I-COA- overview of register transfer, micro operations and basic computer...
MCA-I-COA- overview of register transfer, micro operations and basic computer...MCA-I-COA- overview of register transfer, micro operations and basic computer...
MCA-I-COA- overview of register transfer, micro operations and basic computer...
Ā 
Instruction codes and computer registers
Instruction codes and computer registersInstruction codes and computer registers
Instruction codes and computer registers
Ā 
COMPUTER ORGANIZATION NOTES Unit 2
COMPUTER ORGANIZATION NOTES  Unit 2COMPUTER ORGANIZATION NOTES  Unit 2
COMPUTER ORGANIZATION NOTES Unit 2
Ā 
Instruction code
Instruction codeInstruction code
Instruction code
Ā 
Basic computer organisation design
Basic computer organisation designBasic computer organisation design
Basic computer organisation design
Ā 
Basic computer organization
Basic computer organizationBasic computer organization
Basic computer organization
Ā 
Central processor organization
Central processor organizationCentral processor organization
Central processor organization
Ā 
Architecture OF 8085
Architecture OF 8085Architecture OF 8085
Architecture OF 8085
Ā 
B.sc cs-ii-u-2.2-overview of register transfer, micro operations and basic co...
B.sc cs-ii-u-2.2-overview of register transfer, micro operations and basic co...B.sc cs-ii-u-2.2-overview of register transfer, micro operations and basic co...
B.sc cs-ii-u-2.2-overview of register transfer, micro operations and basic co...
Ā 
Various type of register
Various type of registerVarious type of register
Various type of register
Ā 
Computer organization
Computer organization Computer organization
Computer organization
Ā 
Introduction to CPU registers
Introduction to CPU registersIntroduction to CPU registers
Introduction to CPU registers
Ā 
Chapter 2
Chapter 2Chapter 2
Chapter 2
Ā 
Addressing modes (detailed data path)
Addressing modes (detailed data path)Addressing modes (detailed data path)
Addressing modes (detailed data path)
Ā 
Basic Computer Organisation And Design
Basic Computer Organisation And DesignBasic Computer Organisation And Design
Basic Computer Organisation And Design
Ā 
Pdemodule 4
Pdemodule 4Pdemodule 4
Pdemodule 4
Ā 
Module 3 special purpose programmable devices and their interfacing
Module 3 special purpose programmable devices and their interfacingModule 3 special purpose programmable devices and their interfacing
Module 3 special purpose programmable devices and their interfacing
Ā 
Module 1 8086
Module 1 8086Module 1 8086
Module 1 8086
Ā 

Viewers also liked

9Ā° enfoques de investigaciĆ³n
9Ā° enfoques de investigaciĆ³n9Ā° enfoques de investigaciĆ³n
9Ā° enfoques de investigaciĆ³n
MAVIRUCHI
Ā 
Plam deƔrea tic's rancheria
Plam deƔrea tic's rancheriaPlam deƔrea tic's rancheria
Plam deƔrea tic's rancheriaRoberto Hoyos Vega
Ā 
Guia pedagĆ³gico 2 periodo
Guia pedagĆ³gico 2 periodoGuia pedagĆ³gico 2 periodo
Guia pedagĆ³gico 2 periodoIsabel Maia
Ā 
Derechos fundamentales ponderaciĆ³n y racionalidad. Por Rober Alexy
Derechos fundamentales ponderaciĆ³n y racionalidad. Por Rober AlexyDerechos fundamentales ponderaciĆ³n y racionalidad. Por Rober Alexy
Derechos fundamentales ponderaciĆ³n y racionalidad. Por Rober Alexy
Alma Carolina Garay
Ā 
SumĆ”rio Pesquisa Redes Sociais - MissĆ£o 1 - "Como os internautas brasileiros ...
SumĆ”rio Pesquisa Redes Sociais - MissĆ£o 1 - "Como os internautas brasileiros ...SumĆ”rio Pesquisa Redes Sociais - MissĆ£o 1 - "Como os internautas brasileiros ...
SumĆ”rio Pesquisa Redes Sociais - MissĆ£o 1 - "Como os internautas brasileiros ...
Expertise InteligĆŖncia e Pesquisa de Mercado ltda
Ā 
Mecanica cinetica dinamica
Mecanica cinetica dinamicaMecanica cinetica dinamica
Mecanica cinetica dinamicabyred
Ā 
Presentacion de ethernet carlios
Presentacion de ethernet carliosPresentacion de ethernet carlios
Presentacion de ethernet carliosguestd451e1
Ā 
Ch 21
Ch 21 Ch 21
Ch 21 Liz Vera
Ā 
El Empaque y Embalaje Adecuado
El Empaque y Embalaje AdecuadoEl Empaque y Embalaje Adecuado
El Empaque y Embalaje Adecuado
VirtualEsumer
Ā 
AdministraĆ§Ć£o de materiais unidade 02 14-06-07 - 151 - ppts 01 slide por folha
AdministraĆ§Ć£o de materiais unidade 02   14-06-07 - 151 - ppts 01 slide por folhaAdministraĆ§Ć£o de materiais unidade 02   14-06-07 - 151 - ppts 01 slide por folha
AdministraĆ§Ć£o de materiais unidade 02 14-06-07 - 151 - ppts 01 slide por folhaAlex CasaƱas
Ā 
Syllabus de Bioquimica
Syllabus de BioquimicaSyllabus de Bioquimica
Syllabus de BioquimicaGenesis Pincay
Ā 
Dime quĆ© y cĆ³mo evalĆŗas y te dirĆ©
Dime quĆ© y cĆ³mo evalĆŗas y te dirĆ©Dime quĆ© y cĆ³mo evalĆŗas y te dirĆ©
Dime quĆ© y cĆ³mo evalĆŗas y te dirĆ©
Roberto Arturo TĆ©llez Morales
Ā 
Sisterma solar de luis alberto el nuevo
Sisterma solar  de luis alberto el nuevoSisterma solar  de luis alberto el nuevo
Sisterma solar de luis alberto el nuevo
Luis Melian Gorrin
Ā 
Proyecto De Tecnica De Programacioin I I
Proyecto De Tecnica De Programacioin  I IProyecto De Tecnica De Programacioin  I I
Proyecto De Tecnica De Programacioin I IAmistadLealtad
Ā 
0016 %Bf Que%20%20modelo%20de%20liderazgo%20utilizar%20para%20la%20formaci%F3...
0016 %Bf Que%20%20modelo%20de%20liderazgo%20utilizar%20para%20la%20formaci%F3...0016 %Bf Que%20%20modelo%20de%20liderazgo%20utilizar%20para%20la%20formaci%F3...
0016 %Bf Que%20%20modelo%20de%20liderazgo%20utilizar%20para%20la%20formaci%F3...Cristina Dino
Ā 
trabalho de historia
trabalho de historiatrabalho de historia
trabalho de historiaAndrezza Santos
Ā 
TIPOS DE INVESTIGACION **ANAV** DPA 1 FABIAN LOPEZ MARTINEZ CĆ³digo 0216
TIPOS DE INVESTIGACION **ANAV** DPA 1 FABIAN LOPEZ MARTINEZ CĆ³digo 0216TIPOS DE INVESTIGACION **ANAV** DPA 1 FABIAN LOPEZ MARTINEZ CĆ³digo 0216
TIPOS DE INVESTIGACION **ANAV** DPA 1 FABIAN LOPEZ MARTINEZ CĆ³digo 0216
fabian-anav
Ā 
Programa cuatro
Programa cuatroPrograma cuatro
Programa cuatro
Krizztiina Pacheko
Ā 
Programa4
Programa4Programa4
Programa4
arecerv
Ā 

Viewers also liked (20)

9Ā° enfoques de investigaciĆ³n
9Ā° enfoques de investigaciĆ³n9Ā° enfoques de investigaciĆ³n
9Ā° enfoques de investigaciĆ³n
Ā 
mariposas
mariposasmariposas
mariposas
Ā 
Plam deƔrea tic's rancheria
Plam deƔrea tic's rancheriaPlam deƔrea tic's rancheria
Plam deƔrea tic's rancheria
Ā 
Guia pedagĆ³gico 2 periodo
Guia pedagĆ³gico 2 periodoGuia pedagĆ³gico 2 periodo
Guia pedagĆ³gico 2 periodo
Ā 
Derechos fundamentales ponderaciĆ³n y racionalidad. Por Rober Alexy
Derechos fundamentales ponderaciĆ³n y racionalidad. Por Rober AlexyDerechos fundamentales ponderaciĆ³n y racionalidad. Por Rober Alexy
Derechos fundamentales ponderaciĆ³n y racionalidad. Por Rober Alexy
Ā 
SumĆ”rio Pesquisa Redes Sociais - MissĆ£o 1 - "Como os internautas brasileiros ...
SumĆ”rio Pesquisa Redes Sociais - MissĆ£o 1 - "Como os internautas brasileiros ...SumĆ”rio Pesquisa Redes Sociais - MissĆ£o 1 - "Como os internautas brasileiros ...
SumĆ”rio Pesquisa Redes Sociais - MissĆ£o 1 - "Como os internautas brasileiros ...
Ā 
Mecanica cinetica dinamica
Mecanica cinetica dinamicaMecanica cinetica dinamica
Mecanica cinetica dinamica
Ā 
Presentacion de ethernet carlios
Presentacion de ethernet carliosPresentacion de ethernet carlios
Presentacion de ethernet carlios
Ā 
Ch 21
Ch 21 Ch 21
Ch 21
Ā 
El Empaque y Embalaje Adecuado
El Empaque y Embalaje AdecuadoEl Empaque y Embalaje Adecuado
El Empaque y Embalaje Adecuado
Ā 
AdministraĆ§Ć£o de materiais unidade 02 14-06-07 - 151 - ppts 01 slide por folha
AdministraĆ§Ć£o de materiais unidade 02   14-06-07 - 151 - ppts 01 slide por folhaAdministraĆ§Ć£o de materiais unidade 02   14-06-07 - 151 - ppts 01 slide por folha
AdministraĆ§Ć£o de materiais unidade 02 14-06-07 - 151 - ppts 01 slide por folha
Ā 
Syllabus de Bioquimica
Syllabus de BioquimicaSyllabus de Bioquimica
Syllabus de Bioquimica
Ā 
Dime quĆ© y cĆ³mo evalĆŗas y te dirĆ©
Dime quĆ© y cĆ³mo evalĆŗas y te dirĆ©Dime quĆ© y cĆ³mo evalĆŗas y te dirĆ©
Dime quĆ© y cĆ³mo evalĆŗas y te dirĆ©
Ā 
Sisterma solar de luis alberto el nuevo
Sisterma solar  de luis alberto el nuevoSisterma solar  de luis alberto el nuevo
Sisterma solar de luis alberto el nuevo
Ā 
Proyecto De Tecnica De Programacioin I I
Proyecto De Tecnica De Programacioin  I IProyecto De Tecnica De Programacioin  I I
Proyecto De Tecnica De Programacioin I I
Ā 
0016 %Bf Que%20%20modelo%20de%20liderazgo%20utilizar%20para%20la%20formaci%F3...
0016 %Bf Que%20%20modelo%20de%20liderazgo%20utilizar%20para%20la%20formaci%F3...0016 %Bf Que%20%20modelo%20de%20liderazgo%20utilizar%20para%20la%20formaci%F3...
0016 %Bf Que%20%20modelo%20de%20liderazgo%20utilizar%20para%20la%20formaci%F3...
Ā 
trabalho de historia
trabalho de historiatrabalho de historia
trabalho de historia
Ā 
TIPOS DE INVESTIGACION **ANAV** DPA 1 FABIAN LOPEZ MARTINEZ CĆ³digo 0216
TIPOS DE INVESTIGACION **ANAV** DPA 1 FABIAN LOPEZ MARTINEZ CĆ³digo 0216TIPOS DE INVESTIGACION **ANAV** DPA 1 FABIAN LOPEZ MARTINEZ CĆ³digo 0216
TIPOS DE INVESTIGACION **ANAV** DPA 1 FABIAN LOPEZ MARTINEZ CĆ³digo 0216
Ā 
Programa cuatro
Programa cuatroPrograma cuatro
Programa cuatro
Ā 
Programa4
Programa4Programa4
Programa4
Ā 

Similar to Instruction code

Computer Architecture & Organization
Computer Architecture & OrganizationComputer Architecture & Organization
Computer Architecture & Organization
Shuvo Chakraborty
Ā 
cse211 power point presentation for engineering
cse211 power point presentation for engineeringcse211 power point presentation for engineering
cse211 power point presentation for engineering
VishnuVinay6
Ā 
Basic Computer Organization and Design
Basic Computer Organization and DesignBasic Computer Organization and Design
Basic Computer Organization and Design
Kamal Acharya
Ā 
Basic Computer Organization and Design
Basic Computer Organization and DesignBasic Computer Organization and Design
Basic Computer Organization and Designmekind
Ā 
CSA PPT UNIT 1.pptx
CSA PPT UNIT 1.pptxCSA PPT UNIT 1.pptx
CSA PPT UNIT 1.pptx
sukhpreetsingh295239
Ā 
Chapter 3 computer organization and artpdf
Chapter 3 computer organization and artpdfChapter 3 computer organization and artpdf
Chapter 3 computer organization and artpdf
Mohammed472103
Ā 
instruction codes
instruction codesinstruction codes
instruction codes
SangeethaSasi1
Ā 
material for studentbasic computer organization and design .pptx
material for studentbasic computer organization and design .pptxmaterial for studentbasic computer organization and design .pptx
material for studentbasic computer organization and design .pptx
jainyshah20
Ā 
Processor Basics
Processor BasicsProcessor Basics
Processor Basics
Education Front
Ā 
Instruction Codes.pptx
Instruction Codes.pptxInstruction Codes.pptx
Instruction Codes.pptx
V.V.Vanniaperumal College for Women
Ā 
CO Unit 3.pdf (Important chapter of coa)
CO Unit 3.pdf (Important chapter of coa)CO Unit 3.pdf (Important chapter of coa)
CO Unit 3.pdf (Important chapter of coa)
guptakrishns23
Ā 
computer organization.pdf
computer organization.pdfcomputer organization.pdf
computer organization.pdf
VishnupriyaKashyap
Ā 
Addresing modes
Addresing modesAddresing modes
Addresing modes
Mritunjay Sharma
Ā 
instruction format.pptx
instruction format.pptxinstruction format.pptx
instruction format.pptx
AshokRachapalli1
Ā 
Instruction format
Instruction formatInstruction format
Instruction format
chauhankapil
Ā 
Computer Organization and Architecture.
Computer Organization and Architecture.Computer Organization and Architecture.
Computer Organization and Architecture.
CS_GDRCST
Ā 
COA.pptx
COA.pptxCOA.pptx
COA.pptx
Bharti189559
Ā 
UNIT 2_ESD.pdf
UNIT 2_ESD.pdfUNIT 2_ESD.pdf
UNIT 2_ESD.pdf
SaralaT3
Ā 
Timing and control
Timing and controlTiming and control
Timing and control
chauhankapil
Ā 

Similar to Instruction code (20)

Computer Architecture & Organization
Computer Architecture & OrganizationComputer Architecture & Organization
Computer Architecture & Organization
Ā 
cse211 power point presentation for engineering
cse211 power point presentation for engineeringcse211 power point presentation for engineering
cse211 power point presentation for engineering
Ā 
Basic Computer Organization and Design
Basic Computer Organization and DesignBasic Computer Organization and Design
Basic Computer Organization and Design
Ā 
Basic Computer Organization and Design
Basic Computer Organization and DesignBasic Computer Organization and Design
Basic Computer Organization and Design
Ā 
CSA PPT UNIT 1.pptx
CSA PPT UNIT 1.pptxCSA PPT UNIT 1.pptx
CSA PPT UNIT 1.pptx
Ā 
Chapter 3 computer organization and artpdf
Chapter 3 computer organization and artpdfChapter 3 computer organization and artpdf
Chapter 3 computer organization and artpdf
Ā 
instruction codes
instruction codesinstruction codes
instruction codes
Ā 
material for studentbasic computer organization and design .pptx
material for studentbasic computer organization and design .pptxmaterial for studentbasic computer organization and design .pptx
material for studentbasic computer organization and design .pptx
Ā 
Processor Basics
Processor BasicsProcessor Basics
Processor Basics
Ā 
Instruction Codes.pptx
Instruction Codes.pptxInstruction Codes.pptx
Instruction Codes.pptx
Ā 
CO Unit 3.pdf (Important chapter of coa)
CO Unit 3.pdf (Important chapter of coa)CO Unit 3.pdf (Important chapter of coa)
CO Unit 3.pdf (Important chapter of coa)
Ā 
2.computer org.
2.computer org.2.computer org.
2.computer org.
Ā 
computer organization.pdf
computer organization.pdfcomputer organization.pdf
computer organization.pdf
Ā 
Addresing modes
Addresing modesAddresing modes
Addresing modes
Ā 
instruction format.pptx
instruction format.pptxinstruction format.pptx
instruction format.pptx
Ā 
Instruction format
Instruction formatInstruction format
Instruction format
Ā 
Computer Organization and Architecture.
Computer Organization and Architecture.Computer Organization and Architecture.
Computer Organization and Architecture.
Ā 
COA.pptx
COA.pptxCOA.pptx
COA.pptx
Ā 
UNIT 2_ESD.pdf
UNIT 2_ESD.pdfUNIT 2_ESD.pdf
UNIT 2_ESD.pdf
Ā 
Timing and control
Timing and controlTiming and control
Timing and control
Ā 

More from Kumar

Graphics devices
Graphics devicesGraphics devices
Graphics devices
Kumar
Ā 
Fill area algorithms
Fill area algorithmsFill area algorithms
Fill area algorithms
Kumar
Ā 
region-filling
region-fillingregion-filling
region-filling
Kumar
Ā 
Bresenham derivation
Bresenham derivationBresenham derivation
Bresenham derivation
Kumar
Ā 
Bresenham circles and polygons derication
Bresenham circles and polygons dericationBresenham circles and polygons derication
Bresenham circles and polygons derication
Kumar
Ā 
Introductionto xslt
Introductionto xsltIntroductionto xslt
Introductionto xslt
Kumar
Ā 
Extracting data from xml
Extracting data from xmlExtracting data from xml
Extracting data from xml
Kumar
Ā 
Xml basics
Xml basicsXml basics
Xml basics
Kumar
Ā 
XML Schema
XML SchemaXML Schema
XML Schema
Kumar
Ā 
Publishing xml
Publishing xmlPublishing xml
Publishing xml
Kumar
Ā 
DTD
DTDDTD
DTD
Kumar
Ā 
Applying xml
Applying xmlApplying xml
Applying xml
Kumar
Ā 
Introduction to XML
Introduction to XMLIntroduction to XML
Introduction to XML
Kumar
Ā 
How to deploy a j2ee application
How to deploy a j2ee applicationHow to deploy a j2ee application
How to deploy a j2ee application
Kumar
Ā 
JNDI, JMS, JPA, XML
JNDI, JMS, JPA, XMLJNDI, JMS, JPA, XML
JNDI, JMS, JPA, XML
Kumar
Ā 
EJB Fundmentals
EJB FundmentalsEJB Fundmentals
EJB Fundmentals
Kumar
Ā 
JSP and struts programming
JSP and struts programmingJSP and struts programming
JSP and struts programming
Kumar
Ā 
java servlet and servlet programming
java servlet and servlet programmingjava servlet and servlet programming
java servlet and servlet programming
Kumar
Ā 
Introduction to JDBC and JDBC Drivers
Introduction to JDBC and JDBC DriversIntroduction to JDBC and JDBC Drivers
Introduction to JDBC and JDBC Drivers
Kumar
Ā 
Introduction to J2EE
Introduction to J2EEIntroduction to J2EE
Introduction to J2EE
Kumar
Ā 

More from Kumar (20)

Graphics devices
Graphics devicesGraphics devices
Graphics devices
Ā 
Fill area algorithms
Fill area algorithmsFill area algorithms
Fill area algorithms
Ā 
region-filling
region-fillingregion-filling
region-filling
Ā 
Bresenham derivation
Bresenham derivationBresenham derivation
Bresenham derivation
Ā 
Bresenham circles and polygons derication
Bresenham circles and polygons dericationBresenham circles and polygons derication
Bresenham circles and polygons derication
Ā 
Introductionto xslt
Introductionto xsltIntroductionto xslt
Introductionto xslt
Ā 
Extracting data from xml
Extracting data from xmlExtracting data from xml
Extracting data from xml
Ā 
Xml basics
Xml basicsXml basics
Xml basics
Ā 
XML Schema
XML SchemaXML Schema
XML Schema
Ā 
Publishing xml
Publishing xmlPublishing xml
Publishing xml
Ā 
DTD
DTDDTD
DTD
Ā 
Applying xml
Applying xmlApplying xml
Applying xml
Ā 
Introduction to XML
Introduction to XMLIntroduction to XML
Introduction to XML
Ā 
How to deploy a j2ee application
How to deploy a j2ee applicationHow to deploy a j2ee application
How to deploy a j2ee application
Ā 
JNDI, JMS, JPA, XML
JNDI, JMS, JPA, XMLJNDI, JMS, JPA, XML
JNDI, JMS, JPA, XML
Ā 
EJB Fundmentals
EJB FundmentalsEJB Fundmentals
EJB Fundmentals
Ā 
JSP and struts programming
JSP and struts programmingJSP and struts programming
JSP and struts programming
Ā 
java servlet and servlet programming
java servlet and servlet programmingjava servlet and servlet programming
java servlet and servlet programming
Ā 
Introduction to JDBC and JDBC Drivers
Introduction to JDBC and JDBC DriversIntroduction to JDBC and JDBC Drivers
Introduction to JDBC and JDBC Drivers
Ā 
Introduction to J2EE
Introduction to J2EEIntroduction to J2EE
Introduction to J2EE
Ā 

Recently uploaded

PCI PIN Basics Webinar from the Controlcase Team
PCI PIN Basics Webinar from the Controlcase TeamPCI PIN Basics Webinar from the Controlcase Team
PCI PIN Basics Webinar from the Controlcase Team
ControlCase
Ā 
Leading Change strategies and insights for effective change management pdf 1.pdf
Leading Change strategies and insights for effective change management pdf 1.pdfLeading Change strategies and insights for effective change management pdf 1.pdf
Leading Change strategies and insights for effective change management pdf 1.pdf
OnBoard
Ā 
Epistemic Interaction - tuning interfaces to provide information for AI support
Epistemic Interaction - tuning interfaces to provide information for AI supportEpistemic Interaction - tuning interfaces to provide information for AI support
Epistemic Interaction - tuning interfaces to provide information for AI support
Alan Dix
Ā 
zkStudyClub - Reef: Fast Succinct Non-Interactive Zero-Knowledge Regex Proofs
zkStudyClub - Reef: Fast Succinct Non-Interactive Zero-Knowledge Regex ProofszkStudyClub - Reef: Fast Succinct Non-Interactive Zero-Knowledge Regex Proofs
zkStudyClub - Reef: Fast Succinct Non-Interactive Zero-Knowledge Regex Proofs
Alex Pruden
Ā 
UiPath Community Day Dubai: AI at Work..
UiPath Community Day Dubai: AI at Work..UiPath Community Day Dubai: AI at Work..
UiPath Community Day Dubai: AI at Work..
UiPathCommunity
Ā 
Essentials of Automations: The Art of Triggers and Actions in FME
Essentials of Automations: The Art of Triggers and Actions in FMEEssentials of Automations: The Art of Triggers and Actions in FME
Essentials of Automations: The Art of Triggers and Actions in FME
Safe Software
Ā 
Alt. GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using ...
Alt. GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using ...Alt. GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using ...
Alt. GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using ...
James Anderson
Ā 
Monitoring Java Application Security with JDK Tools and JFR Events
Monitoring Java Application Security with JDK Tools and JFR EventsMonitoring Java Application Security with JDK Tools and JFR Events
Monitoring Java Application Security with JDK Tools and JFR Events
Ana-Maria Mihalceanu
Ā 
Encryption in Microsoft 365 - ExpertsLive Netherlands 2024
Encryption in Microsoft 365 - ExpertsLive Netherlands 2024Encryption in Microsoft 365 - ExpertsLive Netherlands 2024
Encryption in Microsoft 365 - ExpertsLive Netherlands 2024
Albert Hoitingh
Ā 
Securing your Kubernetes cluster_ a step-by-step guide to success !
Securing your Kubernetes cluster_ a step-by-step guide to success !Securing your Kubernetes cluster_ a step-by-step guide to success !
Securing your Kubernetes cluster_ a step-by-step guide to success !
KatiaHIMEUR1
Ā 
UiPath Test Automation using UiPath Test Suite series, part 4
UiPath Test Automation using UiPath Test Suite series, part 4UiPath Test Automation using UiPath Test Suite series, part 4
UiPath Test Automation using UiPath Test Suite series, part 4
DianaGray10
Ā 
By Design, not by Accident - Agile Venture Bolzano 2024
By Design, not by Accident - Agile Venture Bolzano 2024By Design, not by Accident - Agile Venture Bolzano 2024
By Design, not by Accident - Agile Venture Bolzano 2024
Pierluigi Pugliese
Ā 
State of ICS and IoT Cyber Threat Landscape Report 2024 preview
State of ICS and IoT Cyber Threat Landscape Report 2024 previewState of ICS and IoT Cyber Threat Landscape Report 2024 preview
State of ICS and IoT Cyber Threat Landscape Report 2024 preview
Prayukth K V
Ā 
The Art of the Pitch: WordPress Relationships and Sales
The Art of the Pitch: WordPress Relationships and SalesThe Art of the Pitch: WordPress Relationships and Sales
The Art of the Pitch: WordPress Relationships and Sales
Laura Byrne
Ā 
Assure Contact Center Experiences for Your Customers With ThousandEyes
Assure Contact Center Experiences for Your Customers With ThousandEyesAssure Contact Center Experiences for Your Customers With ThousandEyes
Assure Contact Center Experiences for Your Customers With ThousandEyes
ThousandEyes
Ā 
Smart TV Buyer Insights Survey 2024 by 91mobiles.pdf
Smart TV Buyer Insights Survey 2024 by 91mobiles.pdfSmart TV Buyer Insights Survey 2024 by 91mobiles.pdf
Smart TV Buyer Insights Survey 2024 by 91mobiles.pdf
91mobiles
Ā 
Quantum Computing: Current Landscape and the Future Role of APIs
Quantum Computing: Current Landscape and the Future Role of APIsQuantum Computing: Current Landscape and the Future Role of APIs
Quantum Computing: Current Landscape and the Future Role of APIs
Vlad Stirbu
Ā 
FIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdf
FIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdfFIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdf
FIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdf
FIDO Alliance
Ā 
Pushing the limits of ePRTC: 100ns holdover for 100 days
Pushing the limits of ePRTC: 100ns holdover for 100 daysPushing the limits of ePRTC: 100ns holdover for 100 days
Pushing the limits of ePRTC: 100ns holdover for 100 days
Adtran
Ā 
Climate Impact of Software Testing at Nordic Testing Days
Climate Impact of Software Testing at Nordic Testing DaysClimate Impact of Software Testing at Nordic Testing Days
Climate Impact of Software Testing at Nordic Testing Days
Kari Kakkonen
Ā 

Recently uploaded (20)

PCI PIN Basics Webinar from the Controlcase Team
PCI PIN Basics Webinar from the Controlcase TeamPCI PIN Basics Webinar from the Controlcase Team
PCI PIN Basics Webinar from the Controlcase Team
Ā 
Leading Change strategies and insights for effective change management pdf 1.pdf
Leading Change strategies and insights for effective change management pdf 1.pdfLeading Change strategies and insights for effective change management pdf 1.pdf
Leading Change strategies and insights for effective change management pdf 1.pdf
Ā 
Epistemic Interaction - tuning interfaces to provide information for AI support
Epistemic Interaction - tuning interfaces to provide information for AI supportEpistemic Interaction - tuning interfaces to provide information for AI support
Epistemic Interaction - tuning interfaces to provide information for AI support
Ā 
zkStudyClub - Reef: Fast Succinct Non-Interactive Zero-Knowledge Regex Proofs
zkStudyClub - Reef: Fast Succinct Non-Interactive Zero-Knowledge Regex ProofszkStudyClub - Reef: Fast Succinct Non-Interactive Zero-Knowledge Regex Proofs
zkStudyClub - Reef: Fast Succinct Non-Interactive Zero-Knowledge Regex Proofs
Ā 
UiPath Community Day Dubai: AI at Work..
UiPath Community Day Dubai: AI at Work..UiPath Community Day Dubai: AI at Work..
UiPath Community Day Dubai: AI at Work..
Ā 
Essentials of Automations: The Art of Triggers and Actions in FME
Essentials of Automations: The Art of Triggers and Actions in FMEEssentials of Automations: The Art of Triggers and Actions in FME
Essentials of Automations: The Art of Triggers and Actions in FME
Ā 
Alt. GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using ...
Alt. GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using ...Alt. GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using ...
Alt. GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using ...
Ā 
Monitoring Java Application Security with JDK Tools and JFR Events
Monitoring Java Application Security with JDK Tools and JFR EventsMonitoring Java Application Security with JDK Tools and JFR Events
Monitoring Java Application Security with JDK Tools and JFR Events
Ā 
Encryption in Microsoft 365 - ExpertsLive Netherlands 2024
Encryption in Microsoft 365 - ExpertsLive Netherlands 2024Encryption in Microsoft 365 - ExpertsLive Netherlands 2024
Encryption in Microsoft 365 - ExpertsLive Netherlands 2024
Ā 
Securing your Kubernetes cluster_ a step-by-step guide to success !
Securing your Kubernetes cluster_ a step-by-step guide to success !Securing your Kubernetes cluster_ a step-by-step guide to success !
Securing your Kubernetes cluster_ a step-by-step guide to success !
Ā 
UiPath Test Automation using UiPath Test Suite series, part 4
UiPath Test Automation using UiPath Test Suite series, part 4UiPath Test Automation using UiPath Test Suite series, part 4
UiPath Test Automation using UiPath Test Suite series, part 4
Ā 
By Design, not by Accident - Agile Venture Bolzano 2024
By Design, not by Accident - Agile Venture Bolzano 2024By Design, not by Accident - Agile Venture Bolzano 2024
By Design, not by Accident - Agile Venture Bolzano 2024
Ā 
State of ICS and IoT Cyber Threat Landscape Report 2024 preview
State of ICS and IoT Cyber Threat Landscape Report 2024 previewState of ICS and IoT Cyber Threat Landscape Report 2024 preview
State of ICS and IoT Cyber Threat Landscape Report 2024 preview
Ā 
The Art of the Pitch: WordPress Relationships and Sales
The Art of the Pitch: WordPress Relationships and SalesThe Art of the Pitch: WordPress Relationships and Sales
The Art of the Pitch: WordPress Relationships and Sales
Ā 
Assure Contact Center Experiences for Your Customers With ThousandEyes
Assure Contact Center Experiences for Your Customers With ThousandEyesAssure Contact Center Experiences for Your Customers With ThousandEyes
Assure Contact Center Experiences for Your Customers With ThousandEyes
Ā 
Smart TV Buyer Insights Survey 2024 by 91mobiles.pdf
Smart TV Buyer Insights Survey 2024 by 91mobiles.pdfSmart TV Buyer Insights Survey 2024 by 91mobiles.pdf
Smart TV Buyer Insights Survey 2024 by 91mobiles.pdf
Ā 
Quantum Computing: Current Landscape and the Future Role of APIs
Quantum Computing: Current Landscape and the Future Role of APIsQuantum Computing: Current Landscape and the Future Role of APIs
Quantum Computing: Current Landscape and the Future Role of APIs
Ā 
FIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdf
FIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdfFIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdf
FIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdf
Ā 
Pushing the limits of ePRTC: 100ns holdover for 100 days
Pushing the limits of ePRTC: 100ns holdover for 100 daysPushing the limits of ePRTC: 100ns holdover for 100 days
Pushing the limits of ePRTC: 100ns holdover for 100 days
Ā 
Climate Impact of Software Testing at Nordic Testing Days
Climate Impact of Software Testing at Nordic Testing DaysClimate Impact of Software Testing at Nordic Testing Days
Climate Impact of Software Testing at Nordic Testing Days
Ā 

Instruction code

  • 1. Instruction Codes Type of Instruction Codes Overview Unit 3 - Instruction Codes Abhineet Anand Computer Science and Engg. Department University of Petroleum and Energy Studies, Dehradun November 26, 2012 Abhineet Anand Unit 3 - Instruction Codes
  • 2. Instruction Codes Type of Instruction Codes Overview Introduction Operation Code Operands Instruction Codes A Computer instruction is binary code that speciļ¬es a sequence of micro operation for the Computer. The Computer reads each instruction from memory and places it in a control register. The control then interprets the binary code of the instruction and proceeds to execute it by issuing a sequence of micro operations. Abhineet Anand Unit 3 - Instruction Codes
  • 3. Instruction Codes Type of Instruction Codes Overview Introduction Operation Code Operands Instruction Codes An instruction code is a group of bits that instruct the computer to perform a speciļ¬c task. It is usually divided into parts, each having its own particular interpretation. They are: Operation Code, and Operands. The most basic part of an instruction code is its operation part. Abhineet Anand Unit 3 - Instruction Codes
  • 4. Instruction Codes Type of Instruction Codes Overview Introduction Operation Code Operands Operation Code The Operation Code (OpCode) of an instruction is a group of bits that deļ¬ne each operation such add, subtract, multiply, shift, and complement. It must consist of at least n bits for a given 2n distinct operations. Suppose we are having 64 (26 ) operation then the length of OpCode will be 6. The control unit decode the OpCode and do the required operation. Abhineet Anand Unit 3 - Instruction Codes
  • 5. Instruction Codes Type of Instruction Codes Overview Introduction Operation Code Operands Operands The Operation must be performed on some data stored in processor register or in memory. Every Computer has its own particular instruction code format. The Simplest way to organize a computer is to have an instruction code format with two parts. The ļ¬rst part speciļ¬es the operation to be performed and the second speciļ¬es an address. Abhineet Anand Unit 3 - Instruction Codes
  • 6. Instruction Codes Type of Instruction Codes Overview Type of Instruction Codes Memory - Reference Instruction Register - Reference Instruction Input - Output Instruction Instruction Codes The Basic Computer has three instruction code formats. The OpCode part of the instruction contains three bits and the meaning of the remaining 13 bits depends on the operation code encountered. The three instruction code formats are: Memory - Reference Instruction Register - reference Instruction Input - Output Operation Abhineet Anand Unit 3 - Instruction Codes
  • 7. Instruction Codes Type of Instruction Codes Overview Type of Instruction Codes Memory - Reference Instruction Register - Reference Instruction Input - Output Instruction Memory - Reference Instruction A Memory-Reference instruction uses 12 bits to specify an address and one bit to specify the addressing mode I. I is equal to 0 for direct address and to 1 for indirect address. Abhineet Anand Unit 3 - Instruction Codes
  • 8. Instruction Codes Type of Instruction Codes Overview Type of Instruction Codes Memory - Reference Instruction Register - Reference Instruction Input - Output Instruction Register - Reference Instruction The Register - Reference instruction are recognized by the operation code 111 with 0 in the leftmost bit (bit 15) of the instruction. It speciļ¬es an operation on or a test of the AC register. An operand from memory is not needed, so the other 12 bits are used to specify the operation or test to be executed. Abhineet Anand Unit 3 - Instruction Codes
  • 9. Instruction Codes Type of Instruction Codes Overview Type of Instruction Codes Memory - Reference Instruction Register - Reference Instruction Input - Output Instruction Input - Output Instruction An Input- Output Instruction does not need a reference to memory and recognized by the operation code 111 with a 1 in the left most bit of the instruction. The remaining 12 bits are used to specify the type of input-output operation or test performed. Abhineet Anand Unit 3 - Instruction Codes
  • 10. Instruction Codes Type of Instruction Codes Overview How to know type of instruction. Table of Instruction. OverView The type of instruction is recognized from four bits in position 12 through 15 of the instruction. If the three opcode in position 12 to 14 are not equal to 111, the instruction is a memory-reference type. If these bit position is equal to 111 and 15th position is 0, the instruction is a register-reference type otherwise it is Input- output type. Abhineet Anand Unit 3 - Instruction Codes
  • 11. Instruction Codes Type of Instruction Codes Overview How to know type of instruction. Table of Instruction. Becuase of three bits use in the operation code, its seems that the computer is restricted to a maximum of eight distinct operations. However, by using other 12 bits, the total number of instruction can exceed eight. In fact, the total number of instruction chosen for the basic computer is equal to 25. Abhineet Anand Unit 3 - Instruction Codes
  • 12. Instruction Codes Type of Instruction Codes Overview How to know type of instruction. Table of Instruction. Table of Instruction. The symbol designation is a three-letter word and represents an abbreviation intended for programmers and users. Memory Reference Instructions Abhineet Anand Unit 3 - Instruction Codes
  • 13. Instruction Codes Type of Instruction Codes Overview How to know type of instruction. Table of Instruction. Table of Instruction Register Reference Instructions Abhineet Anand Unit 3 - Instruction Codes
  • 14. Instruction Codes Type of Instruction Codes Overview How to know type of instruction. Table of Instruction. THANK YOU Abhineet Anand Unit 3 - Instruction Codes