Professional Documents
Culture Documents
Lec 02
Lec 02
Lec 02
Lecture 02
8085 Microprocessor
1
Intel 8085 CPU
• 8-bit microprocessor
• 3 MHz (maximum)
2
Intel 8085 CPU
3
8085 Pin layout
4
8085 Pin layout
8
Intel 8085 Internal Structure
9
Registers
10
Accumulator-based ALU
• The accumulator is an 8-bit register that is part
of the arithmetic/logic unit (ALU).
• This register is used to store the 8-bit result data
performed by the ALU.
• Always one operand of the ALU operation is
placed in the accumulator, and the result is
placed back into the accumulator.
• The accumulator is also identified as register A.
11
General purpose Registers
• Six general purpose 8-bit registers: B, C, D, E, H,
and L
13
Flags
• The most commonly used flags are Zero, Carry,
and Sign. The microprocessor uses these flags
to test data conditions.
15
Flags
– S - Sign: The Sign flag is set if bit D7 of the result =
1; otherwise it is reset.
B 89 h B 89 h
Flag 80 h Flag 10 h
1001 1010
1000 1001 Note: All flags are
modified to reflect the
0010 0011
result of the addition.
Flag: S=0, Z=0, AC=1 , P=0 and C=1,
17
Program Counter (PC) and Stack
Pointer (SP)
• These are two 16-bit registers used to hold
memory addresses.
• PC:
– The function of the PC is to point to the
memory address from which the next byte is to
be fetched.