8085 Architecture, Functional Blocks & Registers
Internal bus structure, ALU, general-purpose register pairs (BC, DE, HL), pointers, and the 8-bit flag status register.
Knova editors9 min readQuick checkSources
The Architecture of the 8085 Microprocessor
The Intel 8085 is an 8-bit, general-purpose microprocessor fabricated using high-density N-channel silicon-gate MOS (NMOS) technology. Packaged in a 40-pin Dual In-Line Package (DIP), it operates on a single DC power supply, overcoming the multi-voltage requirement () of its predecessor, the 8080.
Functional Block Units
The internal architecture of the 8085 comprises five principal functional units communicating over an 8-bit internal bidirectional data bus:
- Arithmetic and Logic Unit (ALU): Performs 8-bit arithmetic operations (addition, subtraction) and logical evaluations (AND, OR, XOR, compare, rotate, complement). The ALU receives one operand from the Accumulator and the other from the Temporary Register.
- Register Array: Consists of general-purpose 8-bit registers () and dedicated 16-bit special registers ().
- Instruction Register and Decoder: Fetches an 8-bit opcode from memory into the Instruction Register, which the internal decoder translates into operational micro-steps.
- Timing and Control Unit: Generates clock signals and internal control pulses to synchronize data flow and bus handshaking across the system.
- Interrupt and Serial I/O Control Units: Handles hardware interrupt prioritization and bit-by-bit serial communication over the SID and SOD pins.
Internal Register Organization
The programmer's model of the 8085 includes eight addressable registers:
- Accumulator (Register A): An 8-bit register that serves as one input to the ALU and stores the final result of all arithmetic and logical operations. It also handles all I/O transactions via
INandOUTinstructions. - General-Purpose Registers (B, C, D, E, H, L): Six 8-bit storage registers. When 16-bit precision is required, they pair into three addressable register pairs:
The register pair holds special status as the default 16-bit memory pointer. Any instruction referencing memory operand
Mimplicitly accesses the memory location pointed to by . - Temporary Registers (W and Z): Two 8-bit registers used exclusively by the CPU during the execution of instructions (e.g.,
XCHG,CALL). They are completely inaccessible to assembly programmers. - Program Counter (PC): A 16-bit sequence register that always holds the memory address of the next instruction byte to be fetched. It increments automatically after every fetch cycle.
- Stack Pointer (SP): A 16-bit register storing the top memory address of the Stack. The stack operates in a Last-In, First-Out (LIFO) order, decrementing before data is pushed and incrementing after data is popped.
The 8085 Flag Register
The Flag register consists of five 1-bit flip-flops that record the status of the ALU following an operation. The 8-bit byte is structured as:
| S | Z | X | AC | X | P | 1 | CY |
Where represents an undefined bit:
- Sign Flag (S): Set to if bit of the ALU result is , indicating a negative two's complement value; otherwise .
- Zero Flag (Z): Set to if the result of an arithmetic or logical operation is strictly ; cleared to if non-zero.
- Auxiliary Carry Flag (AC): Set to when a carry is generated from lower nibble bit into higher nibble bit . This flag is essential for Binary Coded Decimal (BCD) adjustments via the
DAAinstruction and cannot be tested directly with conditional branch instructions. - Parity Flag (P): Set to if the result byte contains an even number of -bits (even parity); cleared to if odd parity.
- Carry Flag (CY): Set to if an arithmetic operation generates a carry out of bit during addition, or a borrow during subtraction.
8085 Flag Register Byte Decoder
The 8-bit Flag register stores ALU status across five active 1-bit flags (Sign, Zero, Auxiliary Carry, Parity, Carry). Bits 5, 3, and 1 occupy fixed placeholder states.