SlideShare une entreprise Scribd logo
1  sur  14
Télécharger pour lire hors ligne
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 specifies 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 specific 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 define 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 first part specifies the operation to be performed and
the second specifies 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 specifies 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

Contenu connexe

Tendances

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 registersmahesh kumar prajapat
 
COMPUTER ORGANIZATION NOTES Unit 2
COMPUTER ORGANIZATION NOTES  Unit 2COMPUTER ORGANIZATION NOTES  Unit 2
COMPUTER ORGANIZATION NOTES Unit 2Dr.MAYA NAYAK
 
Basic computer organisation design
Basic computer organisation designBasic computer organisation design
Basic computer organisation designSanjeev Patel
 
Basic computer organization
Basic computer organizationBasic computer organization
Basic computer organizationNitesh Singh
 
Architecture OF 8085
Architecture OF 8085Architecture OF 8085
Architecture OF 8085muneer.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
 
Computer organization
Computer organization Computer organization
Computer organization vishnu973656
 
Introduction to CPU registers
Introduction to CPU registersIntroduction to CPU registers
Introduction to CPU registersMuhammad Waqas
 
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 Designlavanya marichamy
 
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 interfacingDeepak John
 

Tendances (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
 

En vedette

9° enfoques de investigación
9° enfoques de investigación9° enfoques de investigación
9° enfoques de investigaciónMAVIRUCHI
 
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 AlexyAlma Carolina Garay
 
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
 
El Empaque y Embalaje Adecuado
El Empaque y Embalaje AdecuadoEl Empaque y Embalaje Adecuado
El Empaque y Embalaje AdecuadoVirtualEsumer
 
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
 
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 nuevoLuis 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
 
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 0216fabian-anav
 
Programa4
Programa4Programa4
Programa4arecerv
 

En vedette (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
 

Similaire à Types of Instruction Codes & Formats

Computer Architecture & Organization
Computer Architecture & OrganizationComputer Architecture & Organization
Computer Architecture & OrganizationShuvo Chakraborty
 
Basic Computer Organization and Design
Basic Computer Organization and DesignBasic Computer Organization and Design
Basic Computer Organization and DesignKamal Acharya
 
Basic Computer Organization and Design
Basic Computer Organization and DesignBasic Computer Organization and Design
Basic Computer Organization and Designmekind
 
Chapter 3 computer organization and artpdf
Chapter 3 computer organization and artpdfChapter 3 computer organization and artpdf
Chapter 3 computer organization and artpdfMohammed472103
 
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 .pptxjainyshah20
 
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
 
Instruction format
Instruction formatInstruction format
Instruction formatchauhankapil
 
Computer Organization and Architecture.
Computer Organization and Architecture.Computer Organization and Architecture.
Computer Organization and Architecture.CS_GDRCST
 
UNIT 2_ESD.pdf
UNIT 2_ESD.pdfUNIT 2_ESD.pdf
UNIT 2_ESD.pdfSaralaT3
 
Timing and control
Timing and controlTiming and control
Timing and controlchauhankapil
 
Instruction set (prasenjit dey)
Instruction set (prasenjit dey)Instruction set (prasenjit dey)
Instruction set (prasenjit dey)Prasenjit Dey
 

Similaire à Types of Instruction Codes & Formats (20)

Computer Architecture & Organization
Computer Architecture & OrganizationComputer Architecture & Organization
Computer Architecture & Organization
 
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
 
Instruction set (prasenjit dey)
Instruction set (prasenjit dey)Instruction set (prasenjit dey)
Instruction set (prasenjit dey)
 

Plus de Kumar

Graphics devices
Graphics devicesGraphics devices
Graphics devicesKumar
 
Fill area algorithms
Fill area algorithmsFill area algorithms
Fill area algorithmsKumar
 
region-filling
region-fillingregion-filling
region-fillingKumar
 
Bresenham derivation
Bresenham derivationBresenham derivation
Bresenham derivationKumar
 
Bresenham circles and polygons derication
Bresenham circles and polygons dericationBresenham circles and polygons derication
Bresenham circles and polygons dericationKumar
 
Introductionto xslt
Introductionto xsltIntroductionto xslt
Introductionto xsltKumar
 
Extracting data from xml
Extracting data from xmlExtracting data from xml
Extracting data from xmlKumar
 
Xml basics
Xml basicsXml basics
Xml basicsKumar
 
XML Schema
XML SchemaXML Schema
XML SchemaKumar
 
Publishing xml
Publishing xmlPublishing xml
Publishing xmlKumar
 
Applying xml
Applying xmlApplying xml
Applying xmlKumar
 
Introduction to XML
Introduction to XMLIntroduction to XML
Introduction to XMLKumar
 
How to deploy a j2ee application
How to deploy a j2ee applicationHow to deploy a j2ee application
How to deploy a j2ee applicationKumar
 
JNDI, JMS, JPA, XML
JNDI, JMS, JPA, XMLJNDI, JMS, JPA, XML
JNDI, JMS, JPA, XMLKumar
 
EJB Fundmentals
EJB FundmentalsEJB Fundmentals
EJB FundmentalsKumar
 
JSP and struts programming
JSP and struts programmingJSP and struts programming
JSP and struts programmingKumar
 
java servlet and servlet programming
java servlet and servlet programmingjava servlet and servlet programming
java servlet and servlet programmingKumar
 
Introduction to JDBC and JDBC Drivers
Introduction to JDBC and JDBC DriversIntroduction to JDBC and JDBC Drivers
Introduction to JDBC and JDBC DriversKumar
 
Introduction to J2EE
Introduction to J2EEIntroduction to J2EE
Introduction to J2EEKumar
 

Plus de 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
 

Dernier

Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)Wonjun Hwang
 
Commit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easyCommit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easyAlfredo García Lavilla
 
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek SchlawackFwdays
 
CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):comworks
 
Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!Commit University
 
SAP Build Work Zone - Overview L2-L3.pptx
SAP Build Work Zone - Overview L2-L3.pptxSAP Build Work Zone - Overview L2-L3.pptx
SAP Build Work Zone - Overview L2-L3.pptxNavinnSomaal
 
Search Engine Optimization SEO PDF for 2024.pdf
Search Engine Optimization SEO PDF for 2024.pdfSearch Engine Optimization SEO PDF for 2024.pdf
Search Engine Optimization SEO PDF for 2024.pdfRankYa
 
The Future of Software Development - Devin AI Innovative Approach.pdf
The Future of Software Development - Devin AI Innovative Approach.pdfThe Future of Software Development - Devin AI Innovative Approach.pdf
The Future of Software Development - Devin AI Innovative Approach.pdfSeasiaInfotech2
 
WordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your BrandWordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your Brandgvaughan
 
My INSURER PTE LTD - Insurtech Innovation Award 2024
My INSURER PTE LTD - Insurtech Innovation Award 2024My INSURER PTE LTD - Insurtech Innovation Award 2024
My INSURER PTE LTD - Insurtech Innovation Award 2024The Digital Insurer
 
Vertex AI Gemini Prompt Engineering Tips
Vertex AI Gemini Prompt Engineering TipsVertex AI Gemini Prompt Engineering Tips
Vertex AI Gemini Prompt Engineering TipsMiki Katsuragi
 
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)Mark Simos
 
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024BookNet Canada
 
Streamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project SetupStreamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project SetupFlorian Wilhelm
 
Connect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationConnect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationSlibray Presentation
 
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationMy Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationRidwan Fadjar
 
What's New in Teams Calling, Meetings and Devices March 2024
What's New in Teams Calling, Meetings and Devices March 2024What's New in Teams Calling, Meetings and Devices March 2024
What's New in Teams Calling, Meetings and Devices March 2024Stephanie Beckett
 
Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Scott Keck-Warren
 
Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024Enterprise Knowledge
 

Dernier (20)

Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
 
Commit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easyCommit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easy
 
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
 
CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):
 
Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!
 
SAP Build Work Zone - Overview L2-L3.pptx
SAP Build Work Zone - Overview L2-L3.pptxSAP Build Work Zone - Overview L2-L3.pptx
SAP Build Work Zone - Overview L2-L3.pptx
 
Search Engine Optimization SEO PDF for 2024.pdf
Search Engine Optimization SEO PDF for 2024.pdfSearch Engine Optimization SEO PDF for 2024.pdf
Search Engine Optimization SEO PDF for 2024.pdf
 
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptxE-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
 
The Future of Software Development - Devin AI Innovative Approach.pdf
The Future of Software Development - Devin AI Innovative Approach.pdfThe Future of Software Development - Devin AI Innovative Approach.pdf
The Future of Software Development - Devin AI Innovative Approach.pdf
 
WordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your BrandWordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your Brand
 
My INSURER PTE LTD - Insurtech Innovation Award 2024
My INSURER PTE LTD - Insurtech Innovation Award 2024My INSURER PTE LTD - Insurtech Innovation Award 2024
My INSURER PTE LTD - Insurtech Innovation Award 2024
 
Vertex AI Gemini Prompt Engineering Tips
Vertex AI Gemini Prompt Engineering TipsVertex AI Gemini Prompt Engineering Tips
Vertex AI Gemini Prompt Engineering Tips
 
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
 
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
 
Streamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project SetupStreamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project Setup
 
Connect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationConnect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck Presentation
 
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationMy Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 Presentation
 
What's New in Teams Calling, Meetings and Devices March 2024
What's New in Teams Calling, Meetings and Devices March 2024What's New in Teams Calling, Meetings and Devices March 2024
What's New in Teams Calling, Meetings and Devices March 2024
 
Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024
 
Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024
 

Types of Instruction Codes & Formats

  • 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 specifies 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 specific 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 define 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 first part specifies the operation to be performed and the second specifies 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 specifies 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