SlideShare uma empresa Scribd logo
1 de 14
Baixar para ler offline
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

Mais conteúdo relacionado

Mais procurados

Operand and Opcode | Computer Science
Operand and Opcode | Computer ScienceOperand and Opcode | Computer Science
Operand and Opcode | Computer ScienceTransweb Global Inc
 
Fundamentals of programming with C++
Fundamentals of programming with C++Fundamentals of programming with C++
Fundamentals of programming with C++Seble Nigussie
 
Assembly Language
Assembly LanguageAssembly Language
Assembly LanguageVijay Kumar
 
Basic computer organization
Basic computer organizationBasic computer organization
Basic computer organizationNitesh Singh
 
L10 assembly-language-programming-of-atmega328 p
L10 assembly-language-programming-of-atmega328 pL10 assembly-language-programming-of-atmega328 p
L10 assembly-language-programming-of-atmega328 prsamurti
 
Prototyping of Indian Electronic Voting Machine
Prototyping of Indian Electronic Voting MachinePrototyping of Indian Electronic Voting Machine
Prototyping of Indian Electronic Voting MachineIJERDJOURNAL
 

Mais procurados (11)

Operand and Opcode | Computer Science
Operand and Opcode | Computer ScienceOperand and Opcode | Computer Science
Operand and Opcode | Computer Science
 
Pdemodule 4
Pdemodule 4Pdemodule 4
Pdemodule 4
 
Fundamentals of programming with C++
Fundamentals of programming with C++Fundamentals of programming with C++
Fundamentals of programming with C++
 
Assembly Language
Assembly LanguageAssembly Language
Assembly Language
 
Basic computer organization
Basic computer organizationBasic computer organization
Basic computer organization
 
L10 assembly-language-programming-of-atmega328 p
L10 assembly-language-programming-of-atmega328 pL10 assembly-language-programming-of-atmega328 p
L10 assembly-language-programming-of-atmega328 p
 
Prototyping of Indian Electronic Voting Machine
Prototyping of Indian Electronic Voting MachinePrototyping of Indian Electronic Voting Machine
Prototyping of Indian Electronic Voting Machine
 
Addressing mode
Addressing modeAddressing mode
Addressing mode
 
Coa presentation1
Coa presentation1Coa presentation1
Coa presentation1
 
Chapter 1
Chapter 1Chapter 1
Chapter 1
 
Unit 1
Unit 1Unit 1
Unit 1
 

Semelhante a Instruction code

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
 
BASIC COMPUTER ORGANIZATION AND DESIGN
BASIC COMPUTER ORGANIZATION AND DESIGNBASIC COMPUTER ORGANIZATION AND DESIGN
BASIC COMPUTER ORGANIZATION AND DESIGNAnonymous Red
 
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 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
 

Semelhante a Instruction code (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
 
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
 
BASIC COMPUTER ORGANIZATION AND DESIGN
BASIC COMPUTER ORGANIZATION AND DESIGNBASIC COMPUTER ORGANIZATION AND DESIGN
BASIC COMPUTER ORGANIZATION AND DESIGN
 
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 codes
Instruction codesInstruction codes
Instruction codes
 
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)
 

Mais 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
 

Mais 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
 

Último

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
 
"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii Soldatenko"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii SoldatenkoFwdays
 
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks..."LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...Fwdays
 
Vertex AI Gemini Prompt Engineering Tips
Vertex AI Gemini Prompt Engineering TipsVertex AI Gemini Prompt Engineering Tips
Vertex AI Gemini Prompt Engineering TipsMiki Katsuragi
 
SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024Lorenzo Miniero
 
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
 
Gen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfGen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfAddepto
 
Artificial intelligence in cctv survelliance.pptx
Artificial intelligence in cctv survelliance.pptxArtificial intelligence in cctv survelliance.pptx
Artificial intelligence in cctv survelliance.pptxhariprasad279825
 
"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
 
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
 
How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.Curtis Poe
 
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
 
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
 
How to write a Business Continuity Plan
How to write a Business Continuity PlanHow to write a Business Continuity Plan
How to write a Business Continuity PlanDatabarracks
 
TrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data PrivacyTrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data PrivacyTrustArc
 
Unraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfUnraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfAlex Barbosa Coqueiro
 
Story boards and shot lists for my a level piece
Story boards and shot lists for my a level pieceStory boards and shot lists for my a level piece
Story boards and shot lists for my a level piececharlottematthew16
 
Powerpoint exploring the locations used in television show Time Clash
Powerpoint exploring the locations used in television show Time ClashPowerpoint exploring the locations used in television show Time Clash
Powerpoint exploring the locations used in television show Time Clashcharlottematthew16
 
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
 
Advanced Computer Architecture – An Introduction
Advanced Computer Architecture – An IntroductionAdvanced Computer Architecture – An Introduction
Advanced Computer Architecture – An IntroductionDilum Bandara
 

Último (20)

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
 
"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii Soldatenko"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii Soldatenko
 
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks..."LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
 
Vertex AI Gemini Prompt Engineering Tips
Vertex AI Gemini Prompt Engineering TipsVertex AI Gemini Prompt Engineering Tips
Vertex AI Gemini Prompt Engineering Tips
 
SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 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
 
Gen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfGen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdf
 
Artificial intelligence in cctv survelliance.pptx
Artificial intelligence in cctv survelliance.pptxArtificial intelligence in cctv survelliance.pptx
Artificial intelligence in cctv survelliance.pptx
 
"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
 
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
 
How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.
 
Commit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easyCommit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easy
 
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
 
How to write a Business Continuity Plan
How to write a Business Continuity PlanHow to write a Business Continuity Plan
How to write a Business Continuity Plan
 
TrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data PrivacyTrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data Privacy
 
Unraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfUnraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdf
 
Story boards and shot lists for my a level piece
Story boards and shot lists for my a level pieceStory boards and shot lists for my a level piece
Story boards and shot lists for my a level piece
 
Powerpoint exploring the locations used in television show Time Clash
Powerpoint exploring the locations used in television show Time ClashPowerpoint exploring the locations used in television show Time Clash
Powerpoint exploring the locations used in television show Time Clash
 
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
 
Advanced Computer Architecture – An Introduction
Advanced Computer Architecture – An IntroductionAdvanced Computer Architecture – An Introduction
Advanced Computer Architecture – An Introduction
 

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