SlideShare a Scribd company logo
1 of 14
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
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

What's hot

05 instruction set design and architecture
05 instruction set design and architecture05 instruction set design and architecture
05 instruction set design and architectureWaqar Jamil
 
Introduction to Computer Architecture and Organization
Introduction to Computer Architecture and OrganizationIntroduction to Computer Architecture and Organization
Introduction to Computer Architecture and OrganizationDr. Balaji Ganesh Rajagopal
 
Operand and Opcode | Computer Science
Operand and Opcode | Computer ScienceOperand and Opcode | Computer Science
Operand and Opcode | Computer ScienceTransweb Global Inc
 
Introduction to assembler_programming_boston_2
Introduction to assembler_programming_boston_2Introduction to assembler_programming_boston_2
Introduction to assembler_programming_boston_2satyabrataDash18
 
Lec 01 basic concepts
Lec 01 basic conceptsLec 01 basic concepts
Lec 01 basic conceptsAbdul Khan
 
isa architecture
isa architectureisa architecture
isa architectureAJAL A J
 
Mca4010 microprocessor
Mca4010  microprocessorMca4010  microprocessor
Mca4010 microprocessorsmumbahelp
 
Mca4010 microprocessor
Mca4010  microprocessorMca4010  microprocessor
Mca4010 microprocessorsmumbahelp
 
Mca4010 microprocessor
Mca4010  microprocessorMca4010  microprocessor
Mca4010 microprocessorsmumbahelp
 
Assembly Langauge Chap 1
Assembly Langauge Chap 1Assembly Langauge Chap 1
Assembly Langauge Chap 1warda aziz
 
Assembly language progarmming
Assembly language progarmmingAssembly language progarmming
Assembly language progarmmingAzmeyer
 
Computer organiztion5
Computer organiztion5Computer organiztion5
Computer organiztion5Umang Gupta
 
POLITEKNIK MALAYSIA
POLITEKNIK MALAYSIAPOLITEKNIK MALAYSIA
POLITEKNIK MALAYSIAAiman Hud
 
Chapt 01 Assembly Language
Chapt 01 Assembly LanguageChapt 01 Assembly Language
Chapt 01 Assembly LanguageHamza Akram
 
Programming the basic computer
Programming the basic computerProgramming the basic computer
Programming the basic computerKamal Acharya
 
Von-Neumann machine and IAS architecture
Von-Neumann machine and  IAS architectureVon-Neumann machine and  IAS architecture
Von-Neumann machine and IAS architectureShishir Aryal
 
Assembly Language Basics
Assembly Language BasicsAssembly Language Basics
Assembly Language BasicsEducation Front
 
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
 
Fundamentals of programming with C++
Fundamentals of programming with C++Fundamentals of programming with C++
Fundamentals of programming with C++Seble Nigussie
 
Assembly level language
Assembly level languageAssembly level language
Assembly level languagePDFSHARE
 

What's hot (20)

05 instruction set design and architecture
05 instruction set design and architecture05 instruction set design and architecture
05 instruction set design and architecture
 
Introduction to Computer Architecture and Organization
Introduction to Computer Architecture and OrganizationIntroduction to Computer Architecture and Organization
Introduction to Computer Architecture and Organization
 
Operand and Opcode | Computer Science
Operand and Opcode | Computer ScienceOperand and Opcode | Computer Science
Operand and Opcode | Computer Science
 
Introduction to assembler_programming_boston_2
Introduction to assembler_programming_boston_2Introduction to assembler_programming_boston_2
Introduction to assembler_programming_boston_2
 
Lec 01 basic concepts
Lec 01 basic conceptsLec 01 basic concepts
Lec 01 basic concepts
 
isa architecture
isa architectureisa architecture
isa architecture
 
Mca4010 microprocessor
Mca4010  microprocessorMca4010  microprocessor
Mca4010 microprocessor
 
Mca4010 microprocessor
Mca4010  microprocessorMca4010  microprocessor
Mca4010 microprocessor
 
Mca4010 microprocessor
Mca4010  microprocessorMca4010  microprocessor
Mca4010 microprocessor
 
Assembly Langauge Chap 1
Assembly Langauge Chap 1Assembly Langauge Chap 1
Assembly Langauge Chap 1
 
Assembly language progarmming
Assembly language progarmmingAssembly language progarmming
Assembly language progarmming
 
Computer organiztion5
Computer organiztion5Computer organiztion5
Computer organiztion5
 
POLITEKNIK MALAYSIA
POLITEKNIK MALAYSIAPOLITEKNIK MALAYSIA
POLITEKNIK MALAYSIA
 
Chapt 01 Assembly Language
Chapt 01 Assembly LanguageChapt 01 Assembly Language
Chapt 01 Assembly Language
 
Programming the basic computer
Programming the basic computerProgramming the basic computer
Programming the basic computer
 
Von-Neumann machine and IAS architecture
Von-Neumann machine and  IAS architectureVon-Neumann machine and  IAS architecture
Von-Neumann machine and IAS architecture
 
Assembly Language Basics
Assembly Language BasicsAssembly Language Basics
Assembly Language Basics
 
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...
 
Fundamentals of programming with C++
Fundamentals of programming with C++Fundamentals of programming with C++
Fundamentals of programming with C++
 
Assembly level language
Assembly level languageAssembly level language
Assembly level language
 

Viewers also liked

5.interface and packages
5.interface and packages5.interface and packages
5.interface and packagesDeepak Sharma
 
6.applet programming in java
6.applet programming in java6.applet programming in java
6.applet programming in javaDeepak Sharma
 
2.software requirement specification
2.software requirement specification2.software requirement specification
2.software requirement specificationDeepak Sharma
 
10.data transmission
10.data transmission10.data transmission
10.data transmissionDeepak Sharma
 
8.flip flops and registers
8.flip flops and registers8.flip flops and registers
8.flip flops and registersDeepak Sharma
 
Micro operation control of processor
Micro operation control of processorMicro operation control of processor
Micro operation control of processorMuhammad Ishaq
 
Presentation on C.P.U
Presentation on C.P.UPresentation on C.P.U
Presentation on C.P.Ufgdgxvbm98
 
Chapter 4 The Processor
Chapter 4 The ProcessorChapter 4 The Processor
Chapter 4 The Processorguest4f73554
 
Central Processing Unit
Central Processing UnitCentral Processing Unit
Central Processing UnitJan Ralph
 
Cpu and its functions
Cpu and its functionsCpu and its functions
Cpu and its functionsmyrajendra
 
Software requirement and specification
Software requirement and specificationSoftware requirement and specification
Software requirement and specificationAman Adhikari
 
Processor powerpoint
Processor powerpointProcessor powerpoint
Processor powerpointbrennan_jame
 
Intel I3,I5,I7 Processor
Intel I3,I5,I7 ProcessorIntel I3,I5,I7 Processor
Intel I3,I5,I7 Processorsagar solanky
 
08. Central Processing Unit (CPU)
08. Central Processing Unit (CPU)08. Central Processing Unit (CPU)
08. Central Processing Unit (CPU)Akhila Dakshina
 
Cpu presentation
Cpu presentationCpu presentation
Cpu presentationHarry Singh
 

Viewers also liked (18)

1.sdlc
1.sdlc1.sdlc
1.sdlc
 
5.interface and packages
5.interface and packages5.interface and packages
5.interface and packages
 
6.applet programming in java
6.applet programming in java6.applet programming in java
6.applet programming in java
 
2.software requirement specification
2.software requirement specification2.software requirement specification
2.software requirement specification
 
10.data transmission
10.data transmission10.data transmission
10.data transmission
 
8.flip flops and registers
8.flip flops and registers8.flip flops and registers
8.flip flops and registers
 
Micro operation control of processor
Micro operation control of processorMicro operation control of processor
Micro operation control of processor
 
Presentation on C.P.U
Presentation on C.P.UPresentation on C.P.U
Presentation on C.P.U
 
Chapter 4 The Processor
Chapter 4 The ProcessorChapter 4 The Processor
Chapter 4 The Processor
 
Central Processing Unit
Central Processing UnitCentral Processing Unit
Central Processing Unit
 
Cpu and its functions
Cpu and its functionsCpu and its functions
Cpu and its functions
 
Software requirement and specification
Software requirement and specificationSoftware requirement and specification
Software requirement and specification
 
Cpu
CpuCpu
Cpu
 
Processor powerpoint
Processor powerpointProcessor powerpoint
Processor powerpoint
 
Intel I3,I5,I7 Processor
Intel I3,I5,I7 ProcessorIntel I3,I5,I7 Processor
Intel I3,I5,I7 Processor
 
Cpu ppt cse
Cpu ppt cseCpu ppt cse
Cpu ppt cse
 
08. Central Processing Unit (CPU)
08. Central Processing Unit (CPU)08. Central Processing Unit (CPU)
08. Central Processing Unit (CPU)
 
Cpu presentation
Cpu presentationCpu presentation
Cpu presentation
 

Similar to 9.cs instrset

Computer architecture instruction formats
Computer architecture instruction formatsComputer architecture instruction formats
Computer architecture instruction formatsMazin Alwaaly
 
Ec 252 ec-252-l10-instruction sets and addressing modes
Ec 252 ec-252-l10-instruction sets and addressing modesEc 252 ec-252-l10-instruction sets and addressing modes
Ec 252 ec-252-l10-instruction sets and addressing modesbhshmuec
 
10 Instruction Sets Characteristics
10  Instruction  Sets Characteristics10  Instruction  Sets Characteristics
10 Instruction Sets CharacteristicsJeanie Delos Arcos
 
Introduction to Processor Design and ARM Processor
Introduction to Processor Design and ARM ProcessorIntroduction to Processor Design and ARM Processor
Introduction to Processor Design and ARM ProcessorDarling Jemima
 
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
 
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
 
Instruction Set Architecture
Instruction Set ArchitectureInstruction Set Architecture
Instruction Set ArchitectureJaffer Haadi
 
pdfslide.net_morris-mano-ppt.ppt
pdfslide.net_morris-mano-ppt.pptpdfslide.net_morris-mano-ppt.ppt
pdfslide.net_morris-mano-ppt.pptSaurabhPorwal14
 
Addressing modes (detailed data path)
Addressing modes (detailed data path)Addressing modes (detailed data path)
Addressing modes (detailed data path)Mahesh Kumar Attri
 
Instruction set (prasenjit dey)
Instruction set (prasenjit dey)Instruction set (prasenjit dey)
Instruction set (prasenjit dey)Prasenjit Dey
 
Computer Organization and Architecture.
Computer Organization and Architecture.Computer Organization and Architecture.
Computer Organization and Architecture.CS_GDRCST
 
10 instruction sets characteristics
10 instruction sets characteristics10 instruction sets characteristics
10 instruction sets characteristicsdilip kumar
 
Instruction Set Architecture
Instruction Set ArchitectureInstruction Set Architecture
Instruction Set ArchitectureDilum Bandara
 
Unit 1 computer architecture (1)
Unit 1   computer architecture (1)Unit 1   computer architecture (1)
Unit 1 computer architecture (1)DevaKumari Vijay
 
UNIT 2_ESD.pdf
UNIT 2_ESD.pdfUNIT 2_ESD.pdf
UNIT 2_ESD.pdfSaralaT3
 

Similar to 9.cs instrset (20)

Computer architecture instruction formats
Computer architecture instruction formatsComputer architecture instruction formats
Computer architecture instruction formats
 
Ec 252 ec-252-l10-instruction sets and addressing modes
Ec 252 ec-252-l10-instruction sets and addressing modesEc 252 ec-252-l10-instruction sets and addressing modes
Ec 252 ec-252-l10-instruction sets and addressing modes
 
10 Instruction Sets Characteristics
10  Instruction  Sets Characteristics10  Instruction  Sets Characteristics
10 Instruction Sets Characteristics
 
Introduction to Processor Design and ARM Processor
Introduction to Processor Design and ARM ProcessorIntroduction to Processor Design and ARM Processor
Introduction to Processor Design and ARM Processor
 
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...
 
Bc0040
Bc0040Bc0040
Bc0040
 
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...
 
Chapter 3
Chapter 3Chapter 3
Chapter 3
 
SS-assemblers 1.pptx
SS-assemblers 1.pptxSS-assemblers 1.pptx
SS-assemblers 1.pptx
 
Instruction Set Architecture
Instruction Set ArchitectureInstruction Set Architecture
Instruction Set Architecture
 
pdfslide.net_morris-mano-ppt.ppt
pdfslide.net_morris-mano-ppt.pptpdfslide.net_morris-mano-ppt.ppt
pdfslide.net_morris-mano-ppt.ppt
 
Addressing modes (detailed data path)
Addressing modes (detailed data path)Addressing modes (detailed data path)
Addressing modes (detailed data path)
 
Instruction set (prasenjit dey)
Instruction set (prasenjit dey)Instruction set (prasenjit dey)
Instruction set (prasenjit dey)
 
Computer Organization and Architecture.
Computer Organization and Architecture.Computer Organization and Architecture.
Computer Organization and Architecture.
 
10 instruction sets characteristics
10 instruction sets characteristics10 instruction sets characteristics
10 instruction sets characteristics
 
microprocessor
 microprocessor microprocessor
microprocessor
 
Instruction Set Architecture
Instruction Set ArchitectureInstruction Set Architecture
Instruction Set Architecture
 
Unit 1 computer architecture (1)
Unit 1   computer architecture (1)Unit 1   computer architecture (1)
Unit 1 computer architecture (1)
 
x86_1.ppt
x86_1.pptx86_1.ppt
x86_1.ppt
 
UNIT 2_ESD.pdf
UNIT 2_ESD.pdfUNIT 2_ESD.pdf
UNIT 2_ESD.pdf
 

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
  • 12.
  • 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

  1. 2
  2. 3
  3. 6
  4. 19
  5. 23
  6. 21
  7. 14