SlideShare a Scribd company logo
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
register
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.
register
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.
register
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

PPTX
Instruction Set Architecture
PPT
Registers
PPTX
Computer architecture control unit
PPTX
Register organization, stack
PPT
Assembly Language Basics
PDF
Assembly language 8086
PPTX
Basic Computer Organization and Design
PPTX
Von-Neumann machine and IAS architecture
Instruction Set Architecture
Registers
Computer architecture control unit
Register organization, stack
Assembly Language Basics
Assembly language 8086
Basic Computer Organization and Design
Von-Neumann machine and IAS architecture

What's hot (20)

PPTX
Computer registers
PPTX
Addressing modes
PPTX
Computer registers
PPTX
Assembly language
PPS
Virtual memory
PPS
Cache memory
PPTX
General register organization (computer organization)
PPT
Instruction format
PPTX
Assembly Language
PPTX
bus and memory tranfer (computer organaization)
PPTX
Basic Computer Organization and Design
PPS
Computer instructions
PPTX
Interrupts
PPTX
instruction format and addressing modes
PPTX
Cache memory
PPTX
Instruction codes
PPTX
Memory Hierarchy
PPTX
Control unit
PPTX
Stack organization
PPTX
Register transfer and micro-operation
Computer registers
Addressing modes
Computer registers
Assembly language
Virtual memory
Cache memory
General register organization (computer organization)
Instruction format
Assembly Language
bus and memory tranfer (computer organaization)
Basic Computer Organization and Design
Computer instructions
Interrupts
instruction format and addressing modes
Cache memory
Instruction codes
Memory Hierarchy
Control unit
Stack organization
Register transfer and micro-operation
Ad

Viewers also liked (20)

PPTX
Text Register In Translation
PPTX
Text, genre and discourse shifts in translation
PPTX
Registers
PDF
Standard Register Sustainability Scorecard 2014
PPTX
Registers
PPTX
Flags
 
PPS
Registers and-common-bus
PPTX
Register & Memory
PDF
What is CPU Register? Type of CPU Register.
PDF
TMOD GE Workshop
PDF
Translation And Markedness
PPT
Counter
PPTX
CPU (Central Processing Units)
PPT
Film Genres by Hollie-Jade Higgins
PPT
Integrating films in the foreign language class
PPT
Translation and Ideology
PPTX
Types of Memories
PPTX
Arabic syllable structure and stress
PDF
PPT
Ideology & translation
Text Register In Translation
Text, genre and discourse shifts in translation
Registers
Standard Register Sustainability Scorecard 2014
Registers
Flags
 
Registers and-common-bus
Register & Memory
What is CPU Register? Type of CPU Register.
TMOD GE Workshop
Translation And Markedness
Counter
CPU (Central Processing Units)
Film Genres by Hollie-Jade Higgins
Integrating films in the foreign language class
Translation and Ideology
Types of Memories
Arabic syllable structure and stress
Ideology & translation
Ad

Similar to register (20)

PPT
computer organization and assembly Regitster.ppt
PPTX
Lecture_3.1 Registers.pptx....................
PPTX
Lecture_about spm and related issues 3_COAL.pptx
PDF
N_Asm Assembly registers (sol)
PPT
(Registers & Flags ) and their function in assembly
PDF
register and iits type explain here
PPTX
Register introduction
PPTX
8086 architecture By Er. Swapnil Kaware
DOCX
Differents Classes of CPU Registers.docx
PPTX
PPTX
Register Organisation of 8086 Microprocessor
PPTX
SAQIB ALI.pptx
PPTX
Introduction to Computers Lecture # 8
PPT
microprocessor and its application with practical gaining.ppt
PPTX
9_2019_01_06!10_26_04_PM.pptx what is register
PPTX
3.11_General purpose registers in 8086 microprocessor.pptx
PPTX
CP Lecture-2 The Microprocessor and its Architecture.pptx
PPTX
Assembly language programming intro
DOCX
Introduction to CPU registers
PDF
Various type of register
computer organization and assembly Regitster.ppt
Lecture_3.1 Registers.pptx....................
Lecture_about spm and related issues 3_COAL.pptx
N_Asm Assembly registers (sol)
(Registers & Flags ) and their function in assembly
register and iits type explain here
Register introduction
8086 architecture By Er. Swapnil Kaware
Differents Classes of CPU Registers.docx
Register Organisation of 8086 Microprocessor
SAQIB ALI.pptx
Introduction to Computers Lecture # 8
microprocessor and its application with practical gaining.ppt
9_2019_01_06!10_26_04_PM.pptx what is register
3.11_General purpose registers in 8086 microprocessor.pptx
CP Lecture-2 The Microprocessor and its Architecture.pptx
Assembly language programming intro
Introduction to CPU registers
Various type of register

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