SlideShare a Scribd company logo
5
Most read
9
Most read
11
Most read
COMPUTER
      INSTRUCTIONS




                                       MANINDER KAUR
                              professormaninder@gmail.com



Maninder Kaur
professormaninder@gmail.com                   www.eazynotes.com   1
INSTRUCTION FORMAT
       An    instruction format or instruction code is a
           group of bits used to perform a particular
           operation on the data stored in computer.

       Processor   fetches an instruction from memory
           and decodes the bits to execute the instruction.

       Different    computers may have their own
           instruction set.

Maninder Kaur
professormaninder@gmail.com                    www.eazynotes.com   2
INSTRUCTION FORMAT
       Instruction  code is divided into two parts
           namely operation code and address of
           data.

           Operation code consisting group of bits
           to define an operation such as add,
           subtract, multiply etc.


Maninder Kaur
professormaninder@gmail.com               www.eazynotes.com   3
INSTRUCTION FORMAT
     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




Maninder Kaur
professormaninder@gmail.com                   www.eazynotes.com   4
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




Maninder Kaur
professormaninder@gmail.com               www.eazynotes.com   5
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)
Maninder Kaur
professormaninder@gmail.com                  www.eazynotes.com   6
Memory Reference Instructions
       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 a hexadecimal
           digit equivalent from 0 to 6 since the last bit is zero (0).
           When I = 1 the last four bits of an instruction have a hexadecimal
           digit equivalent from 8 to E since the last bit is one (1).




Maninder Kaur
professormaninder@gmail.com                                  www.eazynotes.com   7
Memory Reference Instructions
                                 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




Maninder Kaur
professormaninder@gmail.com                                   www.eazynotes.com    8
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 to
         hexadecimal 7.




Maninder Kaur
professormaninder@gmail.com                                 www.eazynotes.com   9
Register Reference Instructions
        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
Maninder Kaur
professormaninder@gmail.com                                             www.eazynotes.com   10
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 to
         hexadecimal F.




Maninder Kaur
professormaninder@gmail.com                                 www.eazynotes.com   11
I/O Reference Instructions
        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




Maninder Kaur
professormaninder@gmail.com                                            www.eazynotes.com   12

More Related Content

PPTX
Computer instruction
PPTX
Basic Computer Organization and Design
PPTX
Instruction Cycle in Computer Organization.pptx
PPTX
Lecture 3 instruction set
PPTX
Memory Reference Instructions
PPTX
Computer architecture instruction formats
PPTX
Basic Computer Organization and Design
PPTX
Computer architecture control unit
Computer instruction
Basic Computer Organization and Design
Instruction Cycle in Computer Organization.pptx
Lecture 3 instruction set
Memory Reference Instructions
Computer architecture instruction formats
Basic Computer Organization and Design
Computer architecture control unit

What's hot (20)

PPTX
General register organization (computer organization)
PPTX
Register organization, stack
PPTX
Memory Hierarchy
PPTX
ADDRESSING MODES
PPTX
bus and memory tranfer (computer organaization)
PPTX
Stack organization
PPS
Cache memory
PPT
Pipeline hazards in computer Architecture ppt
PPTX
Memory Organization
PPS
Virtual memory
PPTX
Instruction codes
PPTX
Register Reference Instructions | Computer Science
PPT
Instruction cycle
PPTX
Computer registers
PPT
Instruction format
PPTX
Unit 4-booth algorithm
PPTX
Instruction Formats
PPTX
Timing and control
PPTX
Addressing sequencing
PPTX
instruction cycle ppt
General register organization (computer organization)
Register organization, stack
Memory Hierarchy
ADDRESSING MODES
bus and memory tranfer (computer organaization)
Stack organization
Cache memory
Pipeline hazards in computer Architecture ppt
Memory Organization
Virtual memory
Instruction codes
Register Reference Instructions | Computer Science
Instruction cycle
Computer registers
Instruction format
Unit 4-booth algorithm
Instruction Formats
Timing and control
Addressing sequencing
instruction cycle ppt
Ad

Viewers also liked (20)

PPT
Types of instructions
PPT
Chapter 3 INSTRUCTION SET AND ASSEMBLY LANGUAGE PROGRAMMING
PDF
Instruction code
PPT
Instruction codes and computer registers
PPT
Memory reference instruction
PDF
Instruction cycle
PPS
Timing and-control-unit
PDF
Basic Computer Organization and Design
PPT
Assembly Language Basics
PPT
Assembly Language Lecture 1
PPTX
Part I:Introduction to assembly language
PDF
Computer organiztion5
PPS
Interrupts
PPT
Fetch execute cycle
PPT
Assembly Language Lecture 2
PPTX
Hardwired control
PPTX
Instruction Set Architecture
PPT
Microprogram Control
PPT
Instruction set
PPTX
Logical and shift micro operations
Types of instructions
Chapter 3 INSTRUCTION SET AND ASSEMBLY LANGUAGE PROGRAMMING
Instruction code
Instruction codes and computer registers
Memory reference instruction
Instruction cycle
Timing and-control-unit
Basic Computer Organization and Design
Assembly Language Basics
Assembly Language Lecture 1
Part I:Introduction to assembly language
Computer organiztion5
Interrupts
Fetch execute cycle
Assembly Language Lecture 2
Hardwired control
Instruction Set Architecture
Microprogram Control
Instruction set
Logical and shift micro operations
Ad

Similar to Computer instructions (20)

DOCX
Instructionformatreport 110419102141-phpapp02
PPTX
computer-instructions-130126022653-phpapp01.pptx
PPTX
Computer instruction(dp&co)
PPTX
Computer design
PPTX
Assembly language.pptx
PDF
cse211 power point presentation for engineering
PDF
Instruction types
PPT
Register Transfer Language and Micro Operations
PPT
instruction-set-of-8086-mr-binu-joy3.ppt
PDF
Instruction execution cycle _
PPTX
Unit2pptx__2021_12wqeqw_27_08_56_15 (1).pptx
PPTX
material for studentbasic computer organization and design .pptx
PPTX
instruction format.pptx
PDF
Chapter 6 - Introduction to 8085 Instructions
PDF
CAAL_CCSU_U1.pdf
PPTX
Basic programming of 8085
PPTX
Memory Reference Instructions
PPT
PPTX
Lecture 13
Instructionformatreport 110419102141-phpapp02
computer-instructions-130126022653-phpapp01.pptx
Computer instruction(dp&co)
Computer design
Assembly language.pptx
cse211 power point presentation for engineering
Instruction types
Register Transfer Language and Micro Operations
instruction-set-of-8086-mr-binu-joy3.ppt
Instruction execution cycle _
Unit2pptx__2021_12wqeqw_27_08_56_15 (1).pptx
material for studentbasic computer organization and design .pptx
instruction format.pptx
Chapter 6 - Introduction to 8085 Instructions
CAAL_CCSU_U1.pdf
Basic programming of 8085
Memory Reference Instructions
Lecture 13

More from Anuj Modi (16)

PPTX
Android Technology
PPS
Synchronous and-asynchronous-data-transfer
PPS
Registers and-common-bus
PPS
Ram and-rom-chips
PPS
Memory
PDF
HTML Lesson 5-insert-and-align-graphics
PDF
HTML Lesson 2-format-pages-and-text
PDF
HTML Lesson 1-create-a-home-page
PPS
Introduction to-dbms
PPS
PPS
Data models
PPS
Architecture of-dbms-and-data-independence
PPT
Central Processing Unit User View
PPT
Graphs In Data Structure
PPT
Graphs In Data Structure
PPT
B trees in Data Structure
Android Technology
Synchronous and-asynchronous-data-transfer
Registers and-common-bus
Ram and-rom-chips
Memory
HTML Lesson 5-insert-and-align-graphics
HTML Lesson 2-format-pages-and-text
HTML Lesson 1-create-a-home-page
Introduction to-dbms
Data models
Architecture of-dbms-and-data-independence
Central Processing Unit User View
Graphs In Data Structure
Graphs In Data Structure
B trees in Data Structure

Computer instructions

  • 1. COMPUTER INSTRUCTIONS MANINDER KAUR professormaninder@gmail.com Maninder Kaur professormaninder@gmail.com www.eazynotes.com 1
  • 2. INSTRUCTION FORMAT An instruction format or instruction code is a group of bits used to perform a particular operation on the data stored in computer. Processor fetches an instruction from memory and decodes the bits to execute the instruction. Different computers may have their own instruction set. Maninder Kaur professormaninder@gmail.com www.eazynotes.com 2
  • 3. INSTRUCTION FORMAT Instruction code is divided into two parts namely operation code and address of data.  Operation code consisting group of bits to define an operation such as add, subtract, multiply etc. Maninder Kaur professormaninder@gmail.com www.eazynotes.com 3
  • 4. INSTRUCTION FORMAT 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 Maninder Kaur professormaninder@gmail.com www.eazynotes.com 4
  • 5. 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 Maninder Kaur professormaninder@gmail.com www.eazynotes.com 5
  • 6. 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) Maninder Kaur professormaninder@gmail.com www.eazynotes.com 6
  • 7. Memory Reference Instructions 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 a hexadecimal digit equivalent from 0 to 6 since the last bit is zero (0).  When I = 1 the last four bits of an instruction have a hexadecimal digit equivalent from 8 to E since the last bit is one (1). Maninder Kaur professormaninder@gmail.com www.eazynotes.com 7
  • 8. Memory Reference Instructions 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 Maninder Kaur professormaninder@gmail.com www.eazynotes.com 8
  • 9. 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 to hexadecimal 7. Maninder Kaur professormaninder@gmail.com www.eazynotes.com 9
  • 10. Register Reference Instructions 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 Maninder Kaur professormaninder@gmail.com www.eazynotes.com 10
  • 11. 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 to hexadecimal F. Maninder Kaur professormaninder@gmail.com www.eazynotes.com 11
  • 12. I/O Reference Instructions 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 Maninder Kaur professormaninder@gmail.com www.eazynotes.com 12