History
1
Intel 8085
Intel 8085 is an 8 bit, NMOS microprocessor. The ALU can work with 8 bits and
it has a 16-bit address. It is a 40 pin IC with a single +5V DC supply and a 3MHz clock.
Its clock cycle is of 320ns. It has three main sections
(1) Arithmetic and Logic Unit (ALU)
(2) Timing and Control Unit
(3) Registers
The pins of 8085 can be classified into 6 major sections. (Attach figure)
S1 S0 Operation
0 0 HALT
0 1 WRITE
1 0 READ
1 1 FETCH
3
(3) Registers
Registers are used for temporary storage and manipulation of data and
instructions. 8085 has the following registers.
I. Accumulator or register A
This is the most important of all registers and it is associated with the ALU.
It is an 8-bit register and it holds one of the operands of an operation. The
other operands may be in the general purpose register or in the memory. The
result of an operation is stored in the accumulator except for some
instructions (e.g. DAD instruction). Some logical instructions work with one
operand only. Then the result is held in the accumulator.
V. Instruction register
It holds the opcode of the instruction which is being decoded and executed.
VII. Flags
8085 has 5 flip-flops which serve as status flags and they are set or reset
depending upon the conditions arising during an arithmetic or logic
operation. The flags of 8085 are
a) Carry Flag: After the execution of an arithmetic instruction if a
carry is produced then the carry flag is set to 1. It occurs during
4
addition and subtraction. It holds the MSB resulting from the
execution of an operation.
b) Parity Flag: If the result of an operation has even number of ones
the parity flag is set to one.
c) Auxiliary Carry Flag: It holds the carry from the third bit to the
fourth bit. It is normally used in BCD operations.
d) Zero Flag: If the result of an operation is zero, the zero flag is set
to one.
e) Sign Flag: It is set to one if the result of an arithmetic operation
of signed numbers results in a negative number.
7 6 5 4 3 2 1 0
S Z X AC X P X CS
Figure shows that the five bits indicate the flags of 8085 and three bits are
undefined. The combinations of these three bits are called the PSW. PSW and
accumulator are treated as 16 bit registers for stack operation.