Skip to content
Advanced Microprocessor

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 +5V+5\text{V} DC power supply, overcoming the multi-voltage requirement (+5V,−5V,+12V+5\text{V}, -5\text{V}, +12\text{V}) 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:

  1. 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.
  2. Register Array: Consists of general-purpose 8-bit registers (B,C,D,E,H,LB, C, D, E, H, L) and dedicated 16-bit special registers (PC,SPPC, SP).
  3. Instruction Register and Decoder: Fetches an 8-bit opcode from memory into the Instruction Register, which the internal decoder translates into operational micro-steps.
  4. Timing and Control Unit: Generates clock signals and internal control pulses to synchronize data flow and bus handshaking across the system.
  5. Interrupt and Serial I/O Control Units: Handles hardware interrupt prioritization and bit-by-bit serial communication over the SID and SOD pins.
Fig 1.1:  Functional Block Diagram of Intel 8085 Microprocessor
Fig 1.1: Functional Block Diagram of Intel 8085 Microprocessor

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 IN and OUT instructions.
  • 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:
    BC(Register B High, C Low),DE(Register D High, E Low),HL(Register H High, L Low)BC \quad (\text{Register } B \text{ High, } C \text{ Low}), \quad DE \quad (\text{Register } D \text{ High, } E \text{ Low}), \quad HL \quad (\text{Register } H \text{ High, } L \text{ Low})

    The HLHL register pair holds special status as the default 16-bit memory pointer. Any instruction referencing memory operand M implicitly accesses the memory location pointed to by [HL][HL].

  • 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:

D7D_7D6D_6D5D_5D4D_4D3D_3D2D_2D1D_1D0D_0
SZXACXP1CY

Where XX represents an undefined bit:

  • Sign Flag (S): Set to 11 if bit D7D_7 of the ALU result is 11, indicating a negative two's complement value; otherwise 00.
  • Zero Flag (Z): Set to 11 if the result of an arithmetic or logical operation is strictly 00H00\text{H}; cleared to 00 if non-zero.
  • Auxiliary Carry Flag (AC): Set to 11 when a carry is generated from lower nibble bit D3D_3 into higher nibble bit D4D_4. This flag is essential for Binary Coded Decimal (BCD) adjustments via the DAA instruction and cannot be tested directly with conditional branch instructions.
  • Parity Flag (P): Set to 11 if the result byte contains an even number of 11-bits (even parity); cleared to 00 if odd parity.
  • Carry Flag (CY): Set to 11 if an arithmetic operation generates a carry out of bit D7D_7 during addition, or a borrow during subtraction.

8085 Flag Register Byte Decoder

F=S⋅27+Z⋅26+AC⋅24+P⋅22+1⋅21+CY⋅20F = S \cdot 2^7 + Z \cdot 2^6 + AC \cdot 2^4 + P \cdot 2^2 + 1 \cdot 2^1 + CY \cdot 2^0

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.

Try it
Register Pointer Behavior: If register H=20HH = 20\text{H} and register L=50HL = 50\text{H}, what does the instruction MOV A, M perform?

Sources

  1. 1.Intel 8085 Microprocessor Datasheet · reference · Intel (opens in a new tab)

Was this chapter useful?

Editors read every answer.

Star this chapter

Thanks Learner. Each star goes to every patcher once.

Finished reading?

Mark it to keep your place in the course.