SlideShare a Scribd company logo
1 of 28
REGISTERS
What is a register?
A register is one of a small set of data holding
places that are part of a computer processor . A
register may hold :
 a computer instruction
 a storage address
 or any kind of data (such as a bit sequence or
individual characters)
About Registers
 Rarely more than 64 registers in number
 Small in size
 Typically a register is less than 64 bits in size
Registers Location
Performance
Registers Perform :
 Fetch
 Decode
 Execute
Types of Registers:
1. Memory Address Register
(MAR)
 Holds the memory addresses of data and
instructions
 Used to access data and instructions from
memory during the execution phase of an
instruction
 It contains the copy of designated memory
locations specified by the memory address
register.
2. Memory Data Register
(MDR)
 It contains the data to be stored in the
computer storage (e.g. RAM).
 It acts like a buffer and holds anything that is
copied from the memory ready for the
processor to use it.
 MDR hold the information before it goes to
the decoder.
3.Index Register
 It is used for modifying operand addresses
during the run of a program.
4. General Purpose Registers
Four general-purpose registers:
1. AX
2. BX
3. CX
4. DX
 Combination of two 8-bit registers
which are separately accessible as AL, BL, CL,
DL
(the "low'' bytes) and AH, BH, CH, and DH (the
"high'' bytes). For example, if AX contains the
16
bit number 1234h, then AL contains 34h and AH
contains 12h.
5. Program Counter
 Part of the instruction sequencer in some
computers
 It holds the address of the memory location
of the next instruction when the current
instruction is executed by the
microprocessor.
Pointer Registers
The pointer registers are 32-bit registers. There
are three categories of pointer registers:
 Instruction Pointer (IP)
 Stack Pointer (SP)
 Base Pointer (BP)
• Instruction Pointer (IP)
 The 16 bit IP register stores the offset address
of the next instruction to be executed.
 It gives the complete address of the current
instruction in the code segment.
• Stack Pointer (SP)
 The 16-bit SP register provides the offset
value within the program stack.
 It refers the current position of data or address
within the program stack.
• Base Pointer (BP)
 The 16-bit BP register mainly helps in
referencing the parameter variables passed to
a subroutine (set of sequence).
6. Accumulator Register
 Used for storing the Results those are
produced by the System.
 When the CPU will generate Some Results
after the Processing then all the Results will be
Stored into the AC Register
7. Stack Control Register
 A stack represents a set of memory blocks; the
data is stored in and retrieved from these
blocks in an order, i.e. First In and Last Out
(FILO).
 The Stack Control Register is used to manage
the stacks in memory. The size of this register
is 2 or 4 bytes.
8. Flag Registers
 It is a special purpose register with size one
byte or two bytes.
 Each bit of the flag register constitutes a flag
(or alarm), such that the bit value indicates if a
specified condition was encountered while
executing an instruction.
Types of Flag Registers
 Carry Flag:
If 9th bit generated then the carry flag will be 1.
Types of Flag Registers
 Auxiliary Carry Flag:
If the 4th bit contains carry then AC is 1.
Types of Flag Registers
 Parity Flag:
If number of ones in the bit are even then
PF=1 else if number of ones in the bit are odd
then PF=0.
Example
Types of Flag Registers
 Zero Flag:
If the answer is zero then ZF=1 otherwise
ZF=0.
Types of Flag Registers
 Overflow Flag:
If the bit are in the range -128 to 127 then
OF=0 else OF=1.
Types of Flag Registers
 Sign Flag:
If MSB=1 then SF=1 else MSB=0 then SF=0.

More Related Content

What's hot

Types of Addressing modes- COA
Types of Addressing modes- COATypes of Addressing modes- COA
Types of Addressing modes- COARuchi Maurya
 
Flag registers (assembly language) with types and examples
Flag registers (assembly language) with types and examplesFlag registers (assembly language) with types and examples
Flag registers (assembly language) with types and examplesComputer_ at_home
 
Cache memory
Cache memoryCache memory
Cache memoryAnuj Modi
 
Instruction set of 8086
Instruction set of 8086Instruction set of 8086
Instruction set of 80869840596838
 
Stack organization
Stack organizationStack organization
Stack organizationchauhankapil
 
Instruction Set Architecture (ISA)
Instruction Set Architecture (ISA)Instruction Set Architecture (ISA)
Instruction Set Architecture (ISA)Gaditek
 
Register organization, stack
Register organization, stackRegister organization, stack
Register organization, stackAsif Iqbal
 
Introduction to computer architecture and organization
Introduction to computer architecture and organizationIntroduction to computer architecture and organization
Introduction to computer architecture and organizationMuhammad Ishaq
 
Arithmetic Logic Unit (ALU)
Arithmetic Logic Unit (ALU)Arithmetic Logic Unit (ALU)
Arithmetic Logic Unit (ALU)Student
 
Computer instructions
Computer instructionsComputer instructions
Computer instructionsAnuj Modi
 
Architecture of 8085 microprocessor
Architecture of 8085 microprocessorArchitecture of 8085 microprocessor
Architecture of 8085 microprocessorAMAN SRIVASTAVA
 

What's hot (20)

Types of Addressing modes- COA
Types of Addressing modes- COATypes of Addressing modes- COA
Types of Addressing modes- COA
 
Flag registers (assembly language) with types and examples
Flag registers (assembly language) with types and examplesFlag registers (assembly language) with types and examples
Flag registers (assembly language) with types and examples
 
Presentation1
Presentation1Presentation1
Presentation1
 
ADDRESSING MODES
ADDRESSING MODESADDRESSING MODES
ADDRESSING MODES
 
Cache memory
Cache memoryCache memory
Cache memory
 
Memory Addressing
Memory AddressingMemory Addressing
Memory Addressing
 
Instruction cycle
Instruction cycleInstruction cycle
Instruction cycle
 
Memory Organization
Memory OrganizationMemory Organization
Memory Organization
 
Arithmetic & Logic Unit
Arithmetic & Logic UnitArithmetic & Logic Unit
Arithmetic & Logic Unit
 
Interrupts
InterruptsInterrupts
Interrupts
 
Instruction set of 8086
Instruction set of 8086Instruction set of 8086
Instruction set of 8086
 
Stack organization
Stack organizationStack organization
Stack organization
 
Instruction Set Architecture (ISA)
Instruction Set Architecture (ISA)Instruction Set Architecture (ISA)
Instruction Set Architecture (ISA)
 
Register organization, stack
Register organization, stackRegister organization, stack
Register organization, stack
 
Introduction to computer architecture and organization
Introduction to computer architecture and organizationIntroduction to computer architecture and organization
Introduction to computer architecture and organization
 
Random Access Memory ppt
Random Access Memory pptRandom Access Memory ppt
Random Access Memory ppt
 
Arithmetic Logic Unit (ALU)
Arithmetic Logic Unit (ALU)Arithmetic Logic Unit (ALU)
Arithmetic Logic Unit (ALU)
 
Computer instructions
Computer instructionsComputer instructions
Computer instructions
 
Von Neumann Architecture
Von Neumann ArchitectureVon Neumann Architecture
Von Neumann Architecture
 
Architecture of 8085 microprocessor
Architecture of 8085 microprocessorArchitecture of 8085 microprocessor
Architecture of 8085 microprocessor
 

Viewers also liked

Text Register In Translation
Text Register In TranslationText Register In Translation
Text Register In TranslationHesti Rohmanasari
 
Text, genre and discourse shifts in translation
Text, genre and discourse shifts in translationText, genre and discourse shifts in translation
Text, genre and discourse shifts in translationAisyah Revolusioner
 
Standard Register Sustainability Scorecard 2014
Standard Register Sustainability Scorecard 2014Standard Register Sustainability Scorecard 2014
Standard Register Sustainability Scorecard 2014Standard Register
 
Registers
RegistersRegisters
RegistersGaditek
 
Flags
FlagsFlags
FlagsCME
 
Registers and-common-bus
Registers and-common-busRegisters and-common-bus
Registers and-common-busAnuj Modi
 
What is CPU Register? Type of CPU Register.
What is CPU Register? Type of CPU Register.What is CPU Register? Type of CPU Register.
What is CPU Register? Type of CPU Register.Kapil Dev Das
 
Translation And Markedness
Translation And MarkednessTranslation And Markedness
Translation And MarkednessAmira Kashgary
 
CPU (Central Processing Units)
CPU (Central Processing Units)CPU (Central Processing Units)
CPU (Central Processing Units)Prabin Maharjan
 
Film Genres by Hollie-Jade Higgins
Film Genres by Hollie-Jade HigginsFilm Genres by Hollie-Jade Higgins
Film Genres by Hollie-Jade HigginsHigginsPlumb
 
Integrating films in the foreign language class
Integrating films in the foreign language classIntegrating films in the foreign language class
Integrating films in the foreign language classuff_scol
 
Translation and Ideology
Translation and IdeologyTranslation and Ideology
Translation and Ideologyjackiechiang
 
Types of Memories
Types of MemoriesTypes of Memories
Types of MemoriesSmit Shah
 
Arabic syllable structure and stress
Arabic syllable structure and stressArabic syllable structure and stress
Arabic syllable structure and stressfawzia
 
Ideology & translation
Ideology & translationIdeology & translation
Ideology & translationGamze Ks
 
Film Genre Research
Film Genre ResearchFilm Genre Research
Film Genre Researchelihusseinxx
 

Viewers also liked (20)

Text Register In Translation
Text Register In TranslationText Register In Translation
Text Register In Translation
 
Text, genre and discourse shifts in translation
Text, genre and discourse shifts in translationText, genre and discourse shifts in translation
Text, genre and discourse shifts in translation
 
Standard Register Sustainability Scorecard 2014
Standard Register Sustainability Scorecard 2014Standard Register Sustainability Scorecard 2014
Standard Register Sustainability Scorecard 2014
 
Registers
RegistersRegisters
Registers
 
Flags
FlagsFlags
Flags
 
Registers and-common-bus
Registers and-common-busRegisters and-common-bus
Registers and-common-bus
 
Register & Memory
Register & MemoryRegister & Memory
Register & Memory
 
What is CPU Register? Type of CPU Register.
What is CPU Register? Type of CPU Register.What is CPU Register? Type of CPU Register.
What is CPU Register? Type of CPU Register.
 
TMOD GE Workshop
TMOD GE WorkshopTMOD GE Workshop
TMOD GE Workshop
 
Translation And Markedness
Translation And MarkednessTranslation And Markedness
Translation And Markedness
 
Counter
CounterCounter
Counter
 
CPU (Central Processing Units)
CPU (Central Processing Units)CPU (Central Processing Units)
CPU (Central Processing Units)
 
Film Genres by Hollie-Jade Higgins
Film Genres by Hollie-Jade HigginsFilm Genres by Hollie-Jade Higgins
Film Genres by Hollie-Jade Higgins
 
Integrating films in the foreign language class
Integrating films in the foreign language classIntegrating films in the foreign language class
Integrating films in the foreign language class
 
Translation and Ideology
Translation and IdeologyTranslation and Ideology
Translation and Ideology
 
Types of Memories
Types of MemoriesTypes of Memories
Types of Memories
 
Arabic syllable structure and stress
Arabic syllable structure and stressArabic syllable structure and stress
Arabic syllable structure and stress
 
Stack
StackStack
Stack
 
Ideology & translation
Ideology & translationIdeology & translation
Ideology & translation
 
Film Genre Research
Film Genre ResearchFilm Genre Research
Film Genre Research
 

Similar to register

SAQIB ALI.pptx
SAQIB ALI.pptxSAQIB ALI.pptx
SAQIB ALI.pptxastik11
 
Register introduction
Register introductionRegister introduction
Register introductionmaamir farooq
 
N_Asm Assembly registers (sol)
N_Asm Assembly registers (sol)N_Asm Assembly registers (sol)
N_Asm Assembly registers (sol)Selomon birhane
 
Introduction to CPU registers
Introduction to CPU registersIntroduction to CPU registers
Introduction to CPU registersMuhammad Waqas
 
digital communication,micro processor,pulse and digital circuits
digital communication,micro processor,pulse and digital circuitsdigital communication,micro processor,pulse and digital circuits
digital communication,micro processor,pulse and digital circuitsManasa Mona
 
8086 Microprocessor
8086 Microprocessor 8086 Microprocessor
8086 Microprocessor Vijay Kumar
 
8086 handout for chapter one and two
8086 handout for chapter one and two8086 handout for chapter one and two
8086 handout for chapter one and twohaymanotyehuala
 
Intel Microprocessors 8086 Documentation
Intel Microprocessors 8086 DocumentationIntel Microprocessors 8086 Documentation
Intel Microprocessors 8086 DocumentationAdeel Rasheed
 
microprocessor_part_3_compressed_1588259301.pdf
microprocessor_part_3_compressed_1588259301.pdfmicroprocessor_part_3_compressed_1588259301.pdf
microprocessor_part_3_compressed_1588259301.pdfssuserd21262
 
Module 1-ppt System programming
Module 1-ppt System programmingModule 1-ppt System programming
Module 1-ppt System programmingvishnu sankar
 
Unit 3 assembler and processor
Unit 3   assembler and processorUnit 3   assembler and processor
Unit 3 assembler and processorAbha Damani
 

Similar to register (20)

SAQIB ALI.pptx
SAQIB ALI.pptxSAQIB ALI.pptx
SAQIB ALI.pptx
 
Register introduction
Register introductionRegister introduction
Register introduction
 
N_Asm Assembly registers (sol)
N_Asm Assembly registers (sol)N_Asm Assembly registers (sol)
N_Asm Assembly registers (sol)
 
Chapter 2
Chapter 2Chapter 2
Chapter 2
 
Introduction to CPU registers
Introduction to CPU registersIntroduction to CPU registers
Introduction to CPU registers
 
intel 8086 introduction
intel 8086 introductionintel 8086 introduction
intel 8086 introduction
 
digital communication,micro processor,pulse and digital circuits
digital communication,micro processor,pulse and digital circuitsdigital communication,micro processor,pulse and digital circuits
digital communication,micro processor,pulse and digital circuits
 
Amp
AmpAmp
Amp
 
8086 Microprocessor
8086 Microprocessor 8086 Microprocessor
8086 Microprocessor
 
8051 microcontroller
 8051 microcontroller 8051 microcontroller
8051 microcontroller
 
8086 handout for chapter one and two
8086 handout for chapter one and two8086 handout for chapter one and two
8086 handout for chapter one and two
 
Register & flags
Register & flagsRegister & flags
Register & flags
 
110 ec0644
110 ec0644110 ec0644
110 ec0644
 
Intel Microprocessors 8086 Documentation
Intel Microprocessors 8086 DocumentationIntel Microprocessors 8086 Documentation
Intel Microprocessors 8086 Documentation
 
It322 intro 1
It322 intro 1It322 intro 1
It322 intro 1
 
microprocessor_part_3_compressed_1588259301.pdf
microprocessor_part_3_compressed_1588259301.pdfmicroprocessor_part_3_compressed_1588259301.pdf
microprocessor_part_3_compressed_1588259301.pdf
 
Advanced micro -processor
Advanced micro -processorAdvanced micro -processor
Advanced micro -processor
 
Module 1-ppt System programming
Module 1-ppt System programmingModule 1-ppt System programming
Module 1-ppt System programming
 
Unit 3 assembler and processor
Unit 3   assembler and processorUnit 3   assembler and processor
Unit 3 assembler and processor
 
Microprocessors
MicroprocessorsMicroprocessors
Microprocessors
 

register

  • 2. What is a register? A register is one of a small set of data holding places that are part of a computer processor . A register may hold :  a computer instruction  a storage address  or any kind of data (such as a bit sequence or individual characters)
  • 3. About Registers  Rarely more than 64 registers in number  Small in size  Typically a register is less than 64 bits in size
  • 5.
  • 6. Performance Registers Perform :  Fetch  Decode  Execute
  • 7. Types of Registers: 1. Memory Address Register (MAR)  Holds the memory addresses of data and instructions  Used to access data and instructions from memory during the execution phase of an instruction  It contains the copy of designated memory locations specified by the memory address register.
  • 8. 2. Memory Data Register (MDR)  It contains the data to be stored in the computer storage (e.g. RAM).  It acts like a buffer and holds anything that is copied from the memory ready for the processor to use it.  MDR hold the information before it goes to the decoder.
  • 9.
  • 10. 3.Index Register  It is used for modifying operand addresses during the run of a program.
  • 11. 4. General Purpose Registers Four general-purpose registers: 1. AX 2. BX 3. CX 4. DX
  • 12.  Combination of two 8-bit registers which are separately accessible as AL, BL, CL, DL (the "low'' bytes) and AH, BH, CH, and DH (the "high'' bytes). For example, if AX contains the 16 bit number 1234h, then AL contains 34h and AH contains 12h.
  • 13. 5. Program Counter  Part of the instruction sequencer in some computers  It holds the address of the memory location of the next instruction when the current instruction is executed by the microprocessor.
  • 14.
  • 15. Pointer Registers The pointer registers are 32-bit registers. There are three categories of pointer registers:  Instruction Pointer (IP)  Stack Pointer (SP)  Base Pointer (BP)
  • 16. • Instruction Pointer (IP)  The 16 bit IP register stores the offset address of the next instruction to be executed.  It gives the complete address of the current instruction in the code segment.
  • 17. • Stack Pointer (SP)  The 16-bit SP register provides the offset value within the program stack.  It refers the current position of data or address within the program stack.
  • 18. • Base Pointer (BP)  The 16-bit BP register mainly helps in referencing the parameter variables passed to a subroutine (set of sequence).
  • 19. 6. Accumulator Register  Used for storing the Results those are produced by the System.  When the CPU will generate Some Results after the Processing then all the Results will be Stored into the AC Register
  • 20. 7. Stack Control Register  A stack represents a set of memory blocks; the data is stored in and retrieved from these blocks in an order, i.e. First In and Last Out (FILO).  The Stack Control Register is used to manage the stacks in memory. The size of this register is 2 or 4 bytes.
  • 21. 8. Flag Registers  It is a special purpose register with size one byte or two bytes.  Each bit of the flag register constitutes a flag (or alarm), such that the bit value indicates if a specified condition was encountered while executing an instruction.
  • 22. Types of Flag Registers  Carry Flag: If 9th bit generated then the carry flag will be 1.
  • 23. Types of Flag Registers  Auxiliary Carry Flag: If the 4th bit contains carry then AC is 1.
  • 24. Types of Flag Registers  Parity Flag: If number of ones in the bit are even then PF=1 else if number of ones in the bit are odd then PF=0.
  • 26. Types of Flag Registers  Zero Flag: If the answer is zero then ZF=1 otherwise ZF=0.
  • 27. Types of Flag Registers  Overflow Flag: If the bit are in the range -128 to 127 then OF=0 else OF=1.
  • 28. Types of Flag Registers  Sign Flag: If MSB=1 then SF=1 else MSB=0 then SF=0.