SlideShare una empresa de Scribd logo
1 de 7
Punjab College of Technical
                 Education

REPORT

           INSTRUCTION FORMAT
INSTRUCTION FORMAT

    An instruction format or instruction code is agroup of bits used to perform a
     particularoperation on the data stored in computer.

    Processor fetches an instruction frommemory and decodes the bits to execute
     the instruction.

    Different computers may have their owninstruction set.

    Instruction code is divided into twoparts namely operation code andaddress of data.

    Operation code consisting group ofbits to define an operation such asadd,subtract,
     multiply etc.


In an instruction format:

    First 12 bits (0-11) specify an address.

    Next 3 bits specify operation code (opcode).

    Left most bit specify the addressing mode I

I = 0 for direct address
I = 1 for indirect address
TYPES OF INSTRUCTIONS



The basic computer has three 16-bit instruction code formats:


   1. Memory Reference Instructions

   2. Register Reference Instructions

   3. Input/Output Instructions



                           Memory Reference Instructions


In Memory reference instruction:

     First 12 bits(0-11) specify an address.

     Next 3 bits specify operation code (opcode).

     Left most bit specify the addressing mode I


I = 0 for direct address

I = 1 for indirect address
(Opcode = 000 through 111)
In Memory reference instruction:

          First 12 bits (0-11) specify an address.

          The address field is denoted by three x’s (in hexadecimal
           notation) and is equivalent to 12-bit address.

          The last mode bit of the instruction represents by symbol I.

          When I = 0, the last four bits of an instruction have ahexadecimal digit
           equivalent from 0 to 6 since the last bit iszero (0).


          When I = 1 the last four bits of an instruction have ahexadecimal digit
           equivalent from 8 to E since the last bit isone (1).

                   Hexadecimal code

Symbol             I=0                   I=1                 Description

AND                0xxx                  8xxx                AND memory word to AC

ADD                1xxx                  9xxx                ADD memory word to AC

LDA                2xxx                  Axxx                LOAD Memory word to AC

STA                3xxx                  Bxxx                Store content of AC in
                                                             memory


BUN                4xxx                  Cxxx                Branch unconditionally

BSA                5xxx                  Dxxx                Branch and save return
                                                             address
ISZ                6xxx                  Exxx                Increment and Skip if zero
Register Reference Instructions


In Register Reference Instruction:

    First 12 bits (0-11) specify the register operation.

    The next three bits equals to 111 specify opcode.

    The last mode bit of the instruction is 0.

    Therefore, left most 4 bits are always 0111 which is equal tohexadecimal 7.
Symbol   Hexadecimal code   Description

CLA      7800               Clear AC

CLE      7400               Clear E

CMA      7200               Complement AC

CME      7100               Complement E

CIR      7080               Circulate right AC and E

CIL      7040               Circulate left AC and E

INC      7020               Increment AC

SPA      7010               Skip next instruction if AC positive

SNA      7008               Skip next instruction is AC is
                            negative

SZA      7004               Skip next instruction is AC is 0

SZE      7002               Skip next instruction is E is 0

HLT      7001               Halt computer
I/O Reference Instructions

In I/O Reference Instruction:

    First 12 bits (0-11) specify the I/O operation.

    The next three bits equals to 111 specify opcode.

    The last mode bit of the instruction is 1.

    Therefore, left most 4 bits are always 1111 which is equal tohexadecimal F.




   Symbol              Hexadecimal code       Description

   INP                 F800                   Input character to AC

   OUT                 F400                   Output character from AC

   SKI                 F200                   Skip on input flag

   SKO                 F100                   Skip on Output flag

   ION                 F080                   Interrupt on

   IOF                 F040                   Interrupt off

Más contenido relacionado

La actualidad más candente

Physics investigatory project for class 12 logic gates
Physics investigatory project for class 12 logic gatesPhysics investigatory project for class 12 logic gates
Physics investigatory project for class 12 logic gates
biswanath dehuri
 

La actualidad más candente (20)

decorder and encoder and its applications
decorder and encoder and its applicationsdecorder and encoder and its applications
decorder and encoder and its applications
 
B sc3 unit 4 combi..lckt
B sc3 unit 4 combi..lcktB sc3 unit 4 combi..lckt
B sc3 unit 4 combi..lckt
 
Decoders-Digital Electronics
Decoders-Digital ElectronicsDecoders-Digital Electronics
Decoders-Digital Electronics
 
The decoder
The decoderThe decoder
The decoder
 
7 Segment Decoder
7 Segment Decoder7 Segment Decoder
7 Segment Decoder
 
Seven Segment Decoders
Seven Segment DecodersSeven Segment Decoders
Seven Segment Decoders
 
Digital electronics - Basics
Digital electronics - BasicsDigital electronics - Basics
Digital electronics - Basics
 
Digital electronics
Digital electronicsDigital electronics
Digital electronics
 
LOGIC GATES - SARTHAK YADAV
LOGIC GATES - SARTHAK YADAVLOGIC GATES - SARTHAK YADAV
LOGIC GATES - SARTHAK YADAV
 
9. logic gates._rr
9. logic gates._rr9. logic gates._rr
9. logic gates._rr
 
Physics investigatory project for class 12 logic gates
Physics investigatory project for class 12 logic gatesPhysics investigatory project for class 12 logic gates
Physics investigatory project for class 12 logic gates
 
Introduction to Boolean Algebra
Introduction to Boolean AlgebraIntroduction to Boolean Algebra
Introduction to Boolean Algebra
 
Number system logic gates
Number system logic gatesNumber system logic gates
Number system logic gates
 
Encoder and decoder
Encoder and decoderEncoder and decoder
Encoder and decoder
 
Bds lab 4
Bds lab 4Bds lab 4
Bds lab 4
 
Seven segment display
Seven segment display Seven segment display
Seven segment display
 
Encoder decoder Adc LDR &7 Segment PPT
Encoder decoder Adc LDR &7 Segment  PPTEncoder decoder Adc LDR &7 Segment  PPT
Encoder decoder Adc LDR &7 Segment PPT
 
encoder and decoder in digital electronics
encoder and decoder in digital electronicsencoder and decoder in digital electronics
encoder and decoder in digital electronics
 
Chapter 3: Simplification of Boolean Function
Chapter 3: Simplification of Boolean FunctionChapter 3: Simplification of Boolean Function
Chapter 3: Simplification of Boolean Function
 
Digital Logic Rcs
Digital Logic RcsDigital Logic Rcs
Digital Logic Rcs
 

Destacado

Robots & Automation
Robots & AutomationRobots & Automation
Robots & Automation
cemal
 

Destacado (20)

India
IndiaIndia
India
 
HTML
HTMLHTML
HTML
 
Operation Research (Simplex Method)
Operation Research (Simplex Method)Operation Research (Simplex Method)
Operation Research (Simplex Method)
 
L20 Simplex Method
L20 Simplex MethodL20 Simplex Method
L20 Simplex Method
 
Measurement of force, torque and strain
Measurement of force, torque and strainMeasurement of force, torque and strain
Measurement of force, torque and strain
 
Biometrics
BiometricsBiometrics
Biometrics
 
Metrology and Measurements unit 2
Metrology and Measurements unit 2Metrology and Measurements unit 2
Metrology and Measurements unit 2
 
Types of Error in Mechanical Measurement & Metrology (MMM)
Types of Error in Mechanical Measurement & Metrology (MMM)Types of Error in Mechanical Measurement & Metrology (MMM)
Types of Error in Mechanical Measurement & Metrology (MMM)
 
Html5
Html5Html5
Html5
 
LINEAR ALGEBRA BEHIND GOOGLE SEARCH
LINEAR ALGEBRA BEHIND GOOGLE SEARCHLINEAR ALGEBRA BEHIND GOOGLE SEARCH
LINEAR ALGEBRA BEHIND GOOGLE SEARCH
 
FPDE presentation
FPDE presentationFPDE presentation
FPDE presentation
 
Robot Configuration - 2
Robot Configuration - 2Robot Configuration - 2
Robot Configuration - 2
 
Robot Configuration - 1
Robot Configuration - 1Robot Configuration - 1
Robot Configuration - 1
 
Mechanical measurement
Mechanical measurementMechanical measurement
Mechanical measurement
 
Html5
Html5Html5
Html5
 
Special Cases in Simplex Method
Special Cases in Simplex MethodSpecial Cases in Simplex Method
Special Cases in Simplex Method
 
Automation and robotics
Automation and roboticsAutomation and robotics
Automation and robotics
 
Thermocouple gauge & pirani gauge
Thermocouple gauge & pirani gauge  Thermocouple gauge & pirani gauge
Thermocouple gauge & pirani gauge
 
Robots & Automation
Robots & AutomationRobots & Automation
Robots & Automation
 
Metrology
MetrologyMetrology
Metrology
 

Similar a Instructionformatreport 110419102141-phpapp02

computer-instructions-130126022653-phpapp01.pptx
computer-instructions-130126022653-phpapp01.pptxcomputer-instructions-130126022653-phpapp01.pptx
computer-instructions-130126022653-phpapp01.pptx
AshokRachapalli1
 
Computer instructions
Computer instructionsComputer instructions
Computer instructions
Anuj Modi
 
Basic computer organization design
Basic computer organization designBasic computer organization design
Basic computer organization design
ndasharath
 
Io processing
Io processingIo processing
Io processing
Tech_MX
 
Instruction set summary
Instruction set summary Instruction set summary
Instruction set summary
janicetiong
 
Programming basic computer
Programming basic computerProgramming basic computer
Programming basic computer
Martial Kouadio
 

Similar a Instructionformatreport 110419102141-phpapp02 (20)

computer-instructions-130126022653-phpapp01.pptx
computer-instructions-130126022653-phpapp01.pptxcomputer-instructions-130126022653-phpapp01.pptx
computer-instructions-130126022653-phpapp01.pptx
 
Computer instructions
Computer instructionsComputer instructions
Computer instructions
 
Instruction format
Instruction formatInstruction format
Instruction format
 
Computer design
Computer designComputer design
Computer design
 
Unit_2 (4).pptx
Unit_2 (4).pptxUnit_2 (4).pptx
Unit_2 (4).pptx
 
CAAL_CCSU_U1.pdf
CAAL_CCSU_U1.pdfCAAL_CCSU_U1.pdf
CAAL_CCSU_U1.pdf
 
Al2ed chapter15
Al2ed chapter15Al2ed chapter15
Al2ed chapter15
 
system software 16 marks
system software 16 markssystem software 16 marks
system software 16 marks
 
Programming with 8085.pptx
Programming with 8085.pptxProgramming with 8085.pptx
Programming with 8085.pptx
 
Instruction formats-in-8086
Instruction formats-in-8086Instruction formats-in-8086
Instruction formats-in-8086
 
[ASM]Lab4
[ASM]Lab4[ASM]Lab4
[ASM]Lab4
 
Basic computer organization design
Basic computer organization designBasic computer organization design
Basic computer organization design
 
COMPUTER INSTRUCTIONS & TIMING & CONTROL.
COMPUTER INSTRUCTIONS & TIMING & CONTROL.COMPUTER INSTRUCTIONS & TIMING & CONTROL.
COMPUTER INSTRUCTIONS & TIMING & CONTROL.
 
Io processing
Io processingIo processing
Io processing
 
Instruction set summary
Instruction set summary Instruction set summary
Instruction set summary
 
Coa presentation1
Coa presentation1Coa presentation1
Coa presentation1
 
Programming basic computer
Programming basic computerProgramming basic computer
Programming basic computer
 
Chapter 5
Chapter 5Chapter 5
Chapter 5
 
Computer Organization and 8085 microprocessor notes
Computer Organization and 8085 microprocessor notesComputer Organization and 8085 microprocessor notes
Computer Organization and 8085 microprocessor notes
 
8051 data type and directives
8051 data type and directives8051 data type and directives
8051 data type and directives
 

Último

+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
?#DUbAI#??##{{(☎️+971_581248768%)**%*]'#abortion pills for sale in dubai@
 

Último (20)

Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
 
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUnderstanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Script
 
Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
 
Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024
 
Tech Trends Report 2024 Future Today Institute.pdf
Tech Trends Report 2024 Future Today Institute.pdfTech Trends Report 2024 Future Today Institute.pdf
Tech Trends Report 2024 Future Today Institute.pdf
 
A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivity
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘
 
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organization
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
 

Instructionformatreport 110419102141-phpapp02

  • 1. Punjab College of Technical Education REPORT INSTRUCTION FORMAT
  • 2. INSTRUCTION FORMAT  An instruction format or instruction code is agroup of bits used to perform a particularoperation on the data stored in computer.  Processor fetches an instruction frommemory and decodes the bits to execute the instruction.  Different computers may have their owninstruction set.  Instruction code is divided into twoparts namely operation code andaddress of data.  Operation code consisting group ofbits to define an operation such asadd,subtract, multiply etc. In an instruction format:  First 12 bits (0-11) specify an address.  Next 3 bits specify operation code (opcode).  Left most bit specify the addressing mode I I = 0 for direct address I = 1 for indirect address
  • 3. TYPES OF INSTRUCTIONS The basic computer has three 16-bit instruction code formats: 1. Memory Reference Instructions 2. Register Reference Instructions 3. Input/Output Instructions Memory Reference Instructions In Memory reference instruction:  First 12 bits(0-11) specify an address.  Next 3 bits specify operation code (opcode).  Left most bit specify the addressing mode I I = 0 for direct address I = 1 for indirect address (Opcode = 000 through 111)
  • 4. In Memory reference instruction:  First 12 bits (0-11) specify an address.  The address field is denoted by three x’s (in hexadecimal notation) and is equivalent to 12-bit address.  The last mode bit of the instruction represents by symbol I.  When I = 0, the last four bits of an instruction have ahexadecimal digit equivalent from 0 to 6 since the last bit iszero (0).  When I = 1 the last four bits of an instruction have ahexadecimal digit equivalent from 8 to E since the last bit isone (1). Hexadecimal code Symbol I=0 I=1 Description AND 0xxx 8xxx AND memory word to AC ADD 1xxx 9xxx ADD memory word to AC LDA 2xxx Axxx LOAD Memory word to AC STA 3xxx Bxxx Store content of AC in memory BUN 4xxx Cxxx Branch unconditionally BSA 5xxx Dxxx Branch and save return address ISZ 6xxx Exxx Increment and Skip if zero
  • 5. Register Reference Instructions In Register Reference Instruction:  First 12 bits (0-11) specify the register operation.  The next three bits equals to 111 specify opcode.  The last mode bit of the instruction is 0.  Therefore, left most 4 bits are always 0111 which is equal tohexadecimal 7.
  • 6. Symbol Hexadecimal code Description CLA 7800 Clear AC CLE 7400 Clear E CMA 7200 Complement AC CME 7100 Complement E CIR 7080 Circulate right AC and E CIL 7040 Circulate left AC and E INC 7020 Increment AC SPA 7010 Skip next instruction if AC positive SNA 7008 Skip next instruction is AC is negative SZA 7004 Skip next instruction is AC is 0 SZE 7002 Skip next instruction is E is 0 HLT 7001 Halt computer
  • 7. I/O Reference Instructions In I/O Reference Instruction:  First 12 bits (0-11) specify the I/O operation.  The next three bits equals to 111 specify opcode.  The last mode bit of the instruction is 1.  Therefore, left most 4 bits are always 1111 which is equal tohexadecimal F. Symbol Hexadecimal code Description INP F800 Input character to AC OUT F400 Output character from AC SKI F200 Skip on input flag SKO F100 Skip on Output flag ION F080 Interrupt on IOF F040 Interrupt off