The register is high-speed memory CPU registers are used by the CPU.Early store data intermediate results during processing. Registers are the fastest type of memory used by the CPU, even faster than level 1 cache. generally, data register in at one time the faster the CPU. register size usually matches and so it is for either 32 bits 64 bits today.Some especially registers are longer most CPU.
students register for the high-speed memory locations into the microprocessor.
CPU uses these locations to store the data and instructions temporarily for processing.
CPU process, store and transfer the data from one component to another with the help of registers for processing.
The number of Registers varies among computers.
It increases the processing power of CPU.
Each register receives information holds it temporarily and pass it on as directed by CU.
The size of Register depends on Computer Architecture.
There are different types of Registers.
Memory Address Register(MAR).
Memory Buffer Register(MBR).
Instruction Pointer Register(IPR).
Stack Pointer Register(SPR).
General Purpose Registers(A,B,C,D).
Program Counter:-Holds Address of next instruction to be fetched and executed.
Instruction PointerHold the current instruction that is being executed.
MAR:-Holds the address of active memory location.
MBR:-Holds the contents of memory location read from and written into the memory.
SPR:-The arrangement of data is called stack and data is stored in or retrieved from the stack using LIFO(last in first out).
IPR:-Holds the instruction address of Registers.
General Purpose Registers:-These Registers are used to perform arithmetic and logical operations.AX,BX,CX,DX are 2 byte registers.
i. Accumulator Registers:-used for arithmetic and logical operation.
ii. Base Register:- used for indirect addressing.
iii. Counter Register:- used for counting purpose.
iv. Data Register:- used for division and multiplication.
Index Register:-used for the data segment and modifying operand address.There are two types of index registers.
i. SI(Souse Index).
ii. DI(Destination Index).
Segment Register:-group of 4 Registers CS,DS,SS,ES. These registers are 2 bytes.CS(Code Segment):- Holds the base location of all executable instructions in the program.
DS(Data Segment):- default base location for the memory location.
SS(Stack Segment):-contain the base location for memory variables.
ES(Extra Segment):- additional base location for the memory location.