Sei sulla pagina 1di 12

8085 Microprocessor Architecture

1
System Architecture
The typical processor system consists of:

 CPU (central processing unit)


 ALU (arithmetic-logic unit)
 Control Logic
 Registers, etc…
 Memory
 Input / Output interfaces

Interconnections between these units:

 Address Bus
 Data Bus
 Control Bus

2
3
Register Section

4
The 8085: Registers

5
The 8085: Registers
Registers

 Six general purpose 8-bit registers: B, C, D, E, H, L

 They can also be combined as register pairs to


perform 16-bit operations: BC, DE, HL

 Registers are programmable (data load, move, etc.)

Accumulator

 Single 8-bit register that is part of the ALU !

 Used for arithmetic / logic operations – the result is always stored


in the accumulator.

6
ACCUMULATOR & PC, SP

 The accumulator is an 8-bit register that is a part of


arithmetic/logic unit (ALU)
 Program Counter(PC)(16) - Deals with sequencing the
execution of instructions. Acts as a memory pointer
 Stack Pointer(SP)(16) – Points to a memory location in
R/W memory, called the stack

7
PROGRAM COUNTER (PC)
a 16 bit register, used to store the next
address of the operation code to be fetched
by the CPU.
 Purpose of PC in a Microprocessor
 to store address of next instruction to be
executed.
 count the number of instructions.

8
STACK POINTER (SP)
 The stack is configured as a data
structure that grows downward from high
memory to low memory.
 At any given time, the SP holds the 16-bit
address of the next free location in the
stack.

9
FLAG REGISTER

 The ALU includes five flip-flops, which are set or reset


after an operation according to data conditions of the
result in the accumulator and other registers
 They are called Zero (Z), Carry (CY), Sign (S), Parity
(P), and Auxiliary Carry (AC) flags

 If the sum in the accumulator id larger than eight bits,


the flip-flop uses to indicate a carry -- called the Carry
flag (CY) – is set to one
 When an arithmetic operation results in zero, the flip-
flop called the Zero (Z) flag is set to one
10
FLAGS

11
INSTRUCTION REGISTER/DECODER

 The instruction register and the decoder are


considered as a part of the ALU
 The instruction register is a temporary storage for the
current instruction of a program
 The decoder decodes the instruction and establishes
the sequence of events to follow

12

Potrebbero piacerti anche