Z80-Cpu Architecture - ZiLOG Z80-CPU Technical Manual

Table of Contents

Advertisement

2.0 Z-80 CPU ARCHITECTURE
A block diagram of the internal architecture of the Z-80 CPU is shown in figure 2.0-1. The diagram
shows all of the major elements in the CPU and it should be referred to throughout the following
description.
13
CPU AND
SYSTEM
CONTROL
SIGNALS
2.1
CPU REGISTERS
INSTRUCTION
DECODE
&
CPU
CONTROL
INST.
REG
CPU
CONTROL
iii
+5V GND <I>
2-80 CPU BLOCK DIAGRAM
FIGURE 2.0-1
ALU
The Z-80 CPU contains 208 bits of R/W memory that are accessible to the programmer. Figure 2.0-2
illustrates how this memory is configured into eighteen 8-bit registers and four 16-bit registers. All Z-80
registers are implemented using static RAM. The registers include two sets of six general purpose registers
that may be used individually as 8-bit registers or in pairs as 16-bit registers. There are also two sets of
accumulator and flag registers.
Special Purpose Registers
1. Program Counter (PC). The program counter holds the 16-bit address of the current instruction being
fetched from memory. The PC is automatically incremented after its contents have been transferred
to the address lines. When a program jump occurs the new value is automatically placed in the PC,
overriding the incrementer.
2. Stack Pointer (SP). The stack pointer holds the 16-bit address of the current top of a stack located
anywhere in external system RAM memory. The external stack memory is organized as a last-in first-
out (LIFO) file. Data can be pushed onto the stack from specific CPU registers or popped off of the
stack into specific CPU registers through the execution of PUSH and POP instructions. The data
popped from the stack is always the last data pushed onto it. The stack allows simple implementation
of multiple level interrupts, unlimited subroutine nesting and simplification of many types of data
manipulation.
3

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the Z80-CPU and is the answer not in the manual?

Questions and answers

This manual is also suitable for:

Z80a-cpu

Table of Contents