Thursday, 5 May 2016

Register array

Register array:
     There are various types of registers in 8085.These registers are used for storage ,manipulating data and instructions.The different types of registers are:

  1. Accumulator.
  2. Temporary register.
  3. General purpose register.
  4. Program Counter.
  5. Stack Pointer.
  6. Instruction register.
  7. Flag register.




Accumulator:-It is a 8-bit register which is used to perform arithmetical and logical operation. It stores the output of any operation. It also works as registers for i/o accesses.

Temporary Register:-It is a 8-bit register which is used to hold the data on which the acumulator is computing operation. It is also called as operand register because it provides operands to ALU.

General purposes registers:-Microprocessor consists 6 general purpose registers of 8-bit each named as B,C,D,E,H and L. Generally theses registers are not used for storing the data permanently. It carries the 8-bits data. These are used only during the execution of the instructions.
      These registers can also be used to carry the 16 bits data by making the pair of 2 registers. The valid register pairs available are BC,DE HL. We can not use other pairs except BC,DE and HL . These registers are programmed by user.

Program Counter:-It is a 16 bit register used as memory pointer. It stores the memory address of the next instruction to be executed. So we can say that this register is used to sequencing the program. Generally the memory have 16 bit addresses so that it has 16 bit memory. The program counter is set to 0000H.

Stack Pointer:-It is also a 16 bit register used as memory pointer. It points to the memory location called stack. Generally stack is a reserved portion of memory where information can be stores or taken back together.

Instruction registers :-It is a 8-bit register. When op-code of an instruction is fetched from memory then it is stored in this register. This is not programmable and is not available to he programmer.

Flag register:-It contains 5 single bit flags and three unused bits which changes its status according to the result stored in an accumulator

0 comments:

Post a Comment