INSTRUCTION 
SETS 
DEEPAK SHARMA 
12KSSB6031 
BCA 5th SEM
What is an Instruction Set? 
• The complete collection of instructions that are 
understood by a CPU 
• Machine language: binary representation of 
operations and (addresses of) arguments 
• Assembly language: mnemonic 
representation for humans, e.g., 
OP A,B,C (meaning A <- OP(B,C))
Elements of an Instruction 
 Operation code (opcode) 
 Do this: ADD, SUB, MPY, DIV, LOAD, STOR 
 Source operand reference 
 To this: (address of) argument of op, e.g. 
register, memory location 
 Result operand reference 
 Put the result here (as above) 
 Next instruction reference (often implicit) 
 When you have done that, do this: BR
Simple Instruction Format 
(using two addresses)
Instruction Types 
 Data transfer: registers, main memory, stack or 
I/O 
 Data processing: arithmetic, logical 
 Control: systems control, transfer of control
Data Transfer 
• Store, load, exchange, move, clear, set, push, pop 
• Specifies: source and destination (memory, 
register, stack), amount of data 
• May be different instructions for different (size, 
location) movements.
Input/Output 
 May be specific instructions, e.g. INPUT, OUTPUT 
 May be done using data movement instructions 
(memory mapped I/O) 
 May be done by a separate controller (DMA): Start 
I/O, Test I/O
Instruction format 
 An instruction is normally made up of a combination of an operation code 
and some way of specifying an operand, most commonly by its location or 
address in memory. A computer has a variety of instruction code formats. 
The control unit in CPU interprets each instruction code and provides the 
necessary control functions needed to process the instruction. There are 5 
types of computer instructions. They are: 
 Four address instruction 
 Three address instruction 
 Two address instruction 
 One address instruction 
 Zero address instruction
Complex Instruction Set 
Computer [CISC] 
 A computer with a large number of instructions is called Complex 
Instruction Set Computer. In CSIC architecture it is very essential that a 
single machine instruction for each statement that is written in a high 
level language must be provided. 
 FEATURES: 
 Variable length instruction formats are used. 
 The instructions provide direct manipulation of operands residing in 
memory. 
 A large number of instructions about 100 to 200 are provided. 
 A large variety of addressing modes about 5 to 20 are provided 
 Instructions performing specialized tasks are used infrequently
Reduce Instruction Set 
Computer 
 Computer that uses fewer instructions with simple constructs so that 
they can be executed much faster within the CPU without having to 
use memory often is called RISC. 
 FEATURES: 
 It has relatively fewer instructions. 
 There are relatively fewer and simple addressing modes. 
 Memory access is limited only to load and store instructions. 
 All instructions are carried out using the registers of the CPU. 
 Instructions are easily decodable. 
 Instruction format is of fixed length.
Logical 
 Bitwise operations: AND, OR, NOT, XOR, TEST, 
CMP, SET 
 Shifting and rotating functions, e.g. 
 logical right shift for unpacking: send 8-bit 
character from 16-bit word 
 arithmetic right shift: division and truncation for 
odd numbers 
 arithmetic left shift: multiplication without 
overflow
9.cs instrset
Types of Operand 
 Addresses: immediate, direct, indirect, stack 
 Numbers: integer or fixed point (binary, twos 
complement), floating point (sign, significand, 
exponent), (packed) decimal (246 = 0000 0010 
0100 0110) 
 Characters: ASCII (128 printable and control 
characters + bit for error detection) 
 Logical Data: bits or flags, e.g., Boolean 0 and 1
THANK YOU

More Related Content

PPT
Chapter 1
PPT
Computer Organization and Assembly Language
PPTX
Part I:Introduction to assembly language
PPTX
Processor Basics
PPTX
Computer architecture
PPTX
Assembly language
PPTX
Intro to assembly language
PPTX
INSTRUCTION SET
Chapter 1
Computer Organization and Assembly Language
Part I:Introduction to assembly language
Processor Basics
Computer architecture
Assembly language
Intro to assembly language
INSTRUCTION SET

What's hot (20)

PPTX
05 instruction set design and architecture
PPTX
Introduction to Computer Architecture and Organization
PPTX
Operand and Opcode | Computer Science
PDF
Introduction to assembler_programming_boston_2
PPT
Lec 01 basic concepts
PPT
isa architecture
DOCX
Mca4010 microprocessor
DOCX
Mca4010 microprocessor
DOCX
Mca4010 microprocessor
PDF
Assembly Langauge Chap 1
PPTX
Assembly language progarmming
PDF
Computer organiztion5
PPTX
POLITEKNIK MALAYSIA
PPT
Chapt 01 Assembly Language
PPTX
Programming the basic computer
PPTX
Von-Neumann machine and IAS architecture
PPT
Assembly Language Basics
PPT
B.sc cs-ii-u-2.2-overview of register transfer, micro operations and basic co...
PDF
Fundamentals of programming with C++
PDF
Assembly level language
05 instruction set design and architecture
Introduction to Computer Architecture and Organization
Operand and Opcode | Computer Science
Introduction to assembler_programming_boston_2
Lec 01 basic concepts
isa architecture
Mca4010 microprocessor
Mca4010 microprocessor
Mca4010 microprocessor
Assembly Langauge Chap 1
Assembly language progarmming
Computer organiztion5
POLITEKNIK MALAYSIA
Chapt 01 Assembly Language
Programming the basic computer
Von-Neumann machine and IAS architecture
Assembly Language Basics
B.sc cs-ii-u-2.2-overview of register transfer, micro operations and basic co...
Fundamentals of programming with C++
Assembly level language
Ad

Viewers also liked (18)

PPTX
PPTX
5.interface and packages
PPTX
6.applet programming in java
PPTX
2.software requirement specification
PPTX
10.data transmission
PPT
8.flip flops and registers
PPTX
Micro operation control of processor
PPT
Presentation on C.P.U
PPT
Chapter 4 The Processor
PPTX
Central Processing Unit
PPT
Cpu and its functions
PPTX
Software requirement and specification
PPTX
PPTX
Processor powerpoint
PPTX
Intel I3,I5,I7 Processor
PPT
Cpu ppt cse
PPSX
08. Central Processing Unit (CPU)
PPTX
Cpu presentation
5.interface and packages
6.applet programming in java
2.software requirement specification
10.data transmission
8.flip flops and registers
Micro operation control of processor
Presentation on C.P.U
Chapter 4 The Processor
Central Processing Unit
Cpu and its functions
Software requirement and specification
Processor powerpoint
Intel I3,I5,I7 Processor
Cpu ppt cse
08. Central Processing Unit (CPU)
Cpu presentation
Ad

Similar to 9.cs instrset (20)

PPTX
CSe_Cumilla Bangladesh_Country CSE CSE213_5.ppt
PPTX
Computer architecture instruction formats
PDF
Ec 252 ec-252-l10-instruction sets and addressing modes
PPT
10 Instruction Sets Characteristics
PPTX
Introduction to Processor Design and ARM Processor
PPT
MCA-I-COA- overview of register transfer, micro operations and basic computer...
PPT
COA Chapter 3 final edited*Minimum 40 characters required.ppt
DOCX
Bc0040
PPT
Bca 2nd sem-u-2.2-overview of register transfer, micro operations and basic c...
PPT
Chapter 3
PPTX
Unit IV Fundamentals of Computer Organization.pptx
PPTX
SS-assemblers 1.pptx
PPTX
Instruction Set Architecture
PPTX
module 3 instruction set and control unit
PPTX
Unit 4_DECA_Complete Digital Electronics.pptx
PPT
pdfslide.net_morris-mano-ppt.ppt
PPTX
Unit 1 Presentation and notes with according to syllabus
PDF
Instruction execution cycle _
PPT
Addressing modes (detailed data path)
PPTX
Instruction set (prasenjit dey)
CSe_Cumilla Bangladesh_Country CSE CSE213_5.ppt
Computer architecture instruction formats
Ec 252 ec-252-l10-instruction sets and addressing modes
10 Instruction Sets Characteristics
Introduction to Processor Design and ARM Processor
MCA-I-COA- overview of register transfer, micro operations and basic computer...
COA Chapter 3 final edited*Minimum 40 characters required.ppt
Bc0040
Bca 2nd sem-u-2.2-overview of register transfer, micro operations and basic c...
Chapter 3
Unit IV Fundamentals of Computer Organization.pptx
SS-assemblers 1.pptx
Instruction Set Architecture
module 3 instruction set and control unit
Unit 4_DECA_Complete Digital Electronics.pptx
pdfslide.net_morris-mano-ppt.ppt
Unit 1 Presentation and notes with according to syllabus
Instruction execution cycle _
Addressing modes (detailed data path)
Instruction set (prasenjit dey)

9.cs instrset

  • 1. INSTRUCTION SETS DEEPAK SHARMA 12KSSB6031 BCA 5th SEM
  • 2. What is an Instruction Set? • The complete collection of instructions that are understood by a CPU • Machine language: binary representation of operations and (addresses of) arguments • Assembly language: mnemonic representation for humans, e.g., OP A,B,C (meaning A <- OP(B,C))
  • 3. Elements of an Instruction  Operation code (opcode)  Do this: ADD, SUB, MPY, DIV, LOAD, STOR  Source operand reference  To this: (address of) argument of op, e.g. register, memory location  Result operand reference  Put the result here (as above)  Next instruction reference (often implicit)  When you have done that, do this: BR
  • 4. Simple Instruction Format (using two addresses)
  • 5. Instruction Types  Data transfer: registers, main memory, stack or I/O  Data processing: arithmetic, logical  Control: systems control, transfer of control
  • 6. Data Transfer • Store, load, exchange, move, clear, set, push, pop • Specifies: source and destination (memory, register, stack), amount of data • May be different instructions for different (size, location) movements.
  • 7. Input/Output  May be specific instructions, e.g. INPUT, OUTPUT  May be done using data movement instructions (memory mapped I/O)  May be done by a separate controller (DMA): Start I/O, Test I/O
  • 8. Instruction format  An instruction is normally made up of a combination of an operation code and some way of specifying an operand, most commonly by its location or address in memory. A computer has a variety of instruction code formats. The control unit in CPU interprets each instruction code and provides the necessary control functions needed to process the instruction. There are 5 types of computer instructions. They are:  Four address instruction  Three address instruction  Two address instruction  One address instruction  Zero address instruction
  • 9. Complex Instruction Set Computer [CISC]  A computer with a large number of instructions is called Complex Instruction Set Computer. In CSIC architecture it is very essential that a single machine instruction for each statement that is written in a high level language must be provided.  FEATURES:  Variable length instruction formats are used.  The instructions provide direct manipulation of operands residing in memory.  A large number of instructions about 100 to 200 are provided.  A large variety of addressing modes about 5 to 20 are provided  Instructions performing specialized tasks are used infrequently
  • 10. Reduce Instruction Set Computer  Computer that uses fewer instructions with simple constructs so that they can be executed much faster within the CPU without having to use memory often is called RISC.  FEATURES:  It has relatively fewer instructions.  There are relatively fewer and simple addressing modes.  Memory access is limited only to load and store instructions.  All instructions are carried out using the registers of the CPU.  Instructions are easily decodable.  Instruction format is of fixed length.
  • 11. Logical  Bitwise operations: AND, OR, NOT, XOR, TEST, CMP, SET  Shifting and rotating functions, e.g.  logical right shift for unpacking: send 8-bit character from 16-bit word  arithmetic right shift: division and truncation for odd numbers  arithmetic left shift: multiplication without overflow
  • 13. Types of Operand  Addresses: immediate, direct, indirect, stack  Numbers: integer or fixed point (binary, twos complement), floating point (sign, significand, exponent), (packed) decimal (246 = 0000 0010 0100 0110)  Characters: ASCII (128 printable and control characters + bit for error detection)  Logical Data: bits or flags, e.g., Boolean 0 and 1

Editor's Notes