Rohini 69771659590
Rohini 69771659590
Rohini 69771659590
v. Intruction register
vi. Temporary register
In addition to the above mentioned regiter the 8085 microprocessor contains a set
of five flipflops which serve as flag (or status flags). A flag is a flipflop which
indicates some condition which arises after execution of an arithmetic or logical
instruction.
Accumulator:
The accumulator (register A) is an 8-bit register associated with ALU.
It is used to hold one of the operands of an arithmetic or logical operation.
It serves as one input to the ALU. The other operand for an arithmetic or logical
opeartion may be stored either in the memroy or in one of the general purpose
registers.
Final result of an arithmetic or logical operation is placed in the accumulator.
General Purpose Registers
The 8085 microprocessor contains six 8-bit general purpose registers. They are B,
C, D, E, H and L.
To hold 16-bit data a combination of two 8-bit registers can be employed which
known as register pairs.
The valid register pairs in 8051 are B-C, D-E and H-L. the programmer cannot
form the register pair by selecting any two registers of his choice.
The H-L pair is used to act as memory pointer and for this purpose it holds the 16-
bit address of a memory location.
The general purpose registers and the accumulator are accessible to programmer.
He can store data in these registers during writing his program.
Program Counter (PC):
It is a 16-bit special purpose register used to hold the memory address of the next
instruction which is to be executed.
It keeps the track of memory addresses of the instructions in the program while
they are being executed.
The microprocessor increments the content of the program counter during the
execution of an instruction so that it points to the address of the next instruction in
the program at the end of the execution of an instruction.
Stack Pointer (SP):
It is a 16-bit special purpose register.
“Stack is a sequence of memory location set aside by the programmer to
store/retrieve the content of accumulator, flags, program counter and general
purpose registers during the execution of a program.
Any portion of the memory can be used as stack. Since the stack works on LIFO
(last in first out) principle, its operation is faster compared normal store/ retrieve
of memory locations.
“The SP holds the address of the top element of data stored in the stack.
“The stack is defined and stack pointer is initialized by the programmer at the
beginning of a program which needs stack operation. Stack is also used by the
microprocessor. For example, it stores the contents of program counter when it
jumps to a subroutine using CALL instruction.
Instruction Register:
The instruction register holds the opcode (operation code or instruction code) of
the instruction which is being decoded and executed.
Temporary Register:
It is an 8-bit register associated with ALU. It holds data during an
arithmetic/logical operation.
It is used by microprocessor.
It is not accessible to programmer.
Flags (Program Status Word i.e. PSW):
The Intel 8085 microprocessor contains five flip-flops to serve as status flags.
The flip-flops are set or reset according to the conditions which arises during an
arithmetic or logical operation.
The five status flags of Intel 8085 are:
i. Carry flag (CS)