Zilog Z80
termKept in this browser · My desk
Zilog's 8-bit microprocessor of 1976, compatible with Intel's 8080 and with twice its instructions; the processor of the TRS-80, the Sinclair machines, MSX and most Brazilian micros of the market-reserve years.
The Computer History Museum calls the Z80 the most enduring of the enhanced 8-bit designs. It ran the TRS-80 of 1977, the ZX80, ZX81 and ZX Spectrum, the Osborne 1 and the MSX standard; in Brazil, most machines in Micro Sistemas's January 1983 table used it, from the TK 82-C to the CP-500.
What it is. The Z80 is an 8-bit microprocessor designed by Zilog, the company Federico Faggin founded with Ralph Ungermann after leaving Intel, to run software written for Intel's 8080 and do more besides. Zilog's product specification of March 1978 lists 158 instructions, 'including all 78 of the 8080A instructions with total software compatibility', and calls the Z80 and the faster Z80A 'third generation' single-chip microprocessors against the 'second generation' of the 8080; the Computer History Museum (CHM) says the same more plainly, that the Z80 'could run any program written for the 8080 and included twice as many built-in machine instructions'. It has 8-bit arithmetic and a 16-bit program counter and stack pointer, so it reaches 65,536 bytes. Because it ran 8080 programs, CP/M (Control Program for Microcomputers) software moved to it unchanged.
How it works. The 1978 specification counts 17 internal registers holding 208 bits that the programmer can read and write. There are two sets of six general-purpose registers (B, C, D, E, H and L, and the alternates B' to L'), usable as 8-bit registers or as 16-bit pairs, and two accumulator and flag pairs (A and F, A' and F'); exchange instructions switch between the main and alternate sets, so one set can serve the main program and the other a fast interrupt routine. Two 16-bit index registers, IX and IY, handle tables and relocatable code; the I register supplies the upper 8 bits of a pointer into a table of interrupt service addresses; the R register refreshes dynamic memory transparently, during clock states T3 and T4 of each opcode fetch, while the processor decodes the instruction. The address bus, A0 to A15, reaches up to 64K bytes of memory, and its lower half carries the address of an input or output port; the data bus, D0 to D7, is 8 bits wide. The chip needs a single 5-volt supply and a single-phase clock; Zilog's 1977 technical manual offers the Z80A at 4 MHz, and the specification quotes 1.0 microsecond instruction execution.
Interrupts and block instructions. Besides the non-maskable interrupt, which always forces a restart at location 0066H, the Z80 has three maskable interrupt modes. In mode 0, the 8080's scheme, the interrupting device places any instruction on the data bus; mode 1 restarts at 0038H with no external hardware; mode 2 forms a pointer from the I register and a byte supplied by the device and makes an indirect call through the table it points to. A reset clears the program counter and the I and R registers and sets the 8080A mode. Eight one-byte restart instructions call fixed addresses in page zero, and the block instructions repeat a load-and-increment or a search until the byte counter in the BC pair reaches zero. Timing is counted in machine cycles (M1 is the opcode fetch) made of clock states, and a slow memory or device stretches them with WAIT states; the technical manual of 1977 and the later user manuals document the whole instruction set.
Origin. IEEE Spectrum's Chip Hall of Fame records that Faggin had worked on the 4004 and the 8080 at Intel, that Zilog first planned a single-chip microcontroller and turned to a microprocessor because that market was crowded, and that the goal was to outperform the 8080 while keeping full compatibility with its software, to lure customers away from Intel. Faggin, Ungermann and Masatoshi Shima, another former Intel engineer, worked 80-hour weeks drawing the circuits through 1975 and into 1976, and they had a prototype chip in March 1976. Like MOS Technology's 6502, its contemporary, it sold for about US$25. The Register adds, for the original part, a 4-micron process, 8,500 transistors and a typical clock of 2.5 MHz. The CHM calls it the most enduring of the enhanced 8-bit designs of the mid-1970s.
Where it showed up. IEEE Spectrum lists the Osborne 1, the first portable computer, the KayPro II, Radio Shack's TRS-80 and the MSX home computers, as well as printers, fax machines, photocopiers, modems and satellites; The Register adds Sinclair's ZX machines, arcade games such as Pac-Man, early Roland synthesizers and, through its descendants, graphing calculators such as the TI-84 Plus CE. In Brazil it was the processor of the market-reserve years: most machines in the Micro Mercado table of Micro Sistemas no. 16, January 1983, used a Z80 or Z80A, from the TK 82-C at 3.25 MHz and the NE Z8000 and CP-200 at 3.6 MHz to the CP-500 at 2 MHz. Owners learned its machine code from the magazines. In February 1983 Micro Sistemas began a Curso de Assembler, 'Assembler para a Z80', taught by Amaury Moraes Júnior, and in June 1983 a reader published a TK82-C routine as decimal numbers POKEd into a REM line and run with USR 16514.
What goes wrong. The address space is easy to misread. In the letters of Micro Sistemas no. 42, March 1985, a TK-85 owner, Gilberto F. da Silva of São Bernardo do Campo, explained that the Z80 is an 8-bit processor that pairs two internal registers into a 16-bit word, that lines A0 to A15 give 65,536 addresses, but that the Sinclair-line machines set bit A15, so only 32,768 positions are distinct: a POKE to 57344 really lands at 24577, and his routine ran at 16514 but not at 49282, which is 16514 plus 32768. He attributed the effect to the system software; the general lesson is that a program which reads the same byte at two addresses is looking at one location twice. Timing is the other trap: code that counts cycles must also count the WAIT states a slow memory or device inserts. Software written for the 8080 runs, but the reverse is not true once a program uses the alternate registers, IX, IY or the new instructions.
Status. On 15 April 2024 Zilog, now owned by Littelfuse, published a product change notification ending virtually all of the Z84C00 range, the standalone Z80 processors, and their peripherals, Hackaday reported on 19 April; last orders were accepted until 14 June 2024. The Register quoted the notice's reason: 'our wafer foundry manufacturer will be discontinuing support for Z80 and other product lines'. Zilog's own notice could not be read for this entry (Zilog's site and the distributor's copy refused automated reading), so the details are the two publications' reports. The eZ80, a system-on-chip descendant, remains in production. IEEE Spectrum's page, first published in 2017 and last updated in December 2023, still says that Zilog makes the Z80; for the standalone chip that stopped being true in 2024.
Neighbours. The 8080 is its ancestor and the 6502 its rival in the home computers of 1977 to the late 1980s; Zilog's own 16-bit Z8000 and Intel's 8086 led the next generation, and the x86 family won it. Machine code and assembly language are how it was programmed, and the TK, CP and MSX machines are where most Brazilian users met it.
Also known as: Z80, Z80A, Z-80
Sources
- Computer History Museum, Timeline of Computer History, 1976 (read 2026-11-23): the Z80 'could run any program written for the 8080 and included twice as many built-in machine instructions'
- Zilog, Z80-CPU Technical Manual, 1977 (read 2026-11-23): 16-bit program counter and stack pointer
- Computer History Museum, The Silicon Engine, 1971 (read 2026-11-23): among the enhanced 8-bit architectures, 'Zilog's Z80 being the most enduring'
- Micro Sistemas no. 16, January 1983 (read 2026-11-23): most Brazilian micros in the Micro Mercado table on the Z80 or Z80A (TK 82-C at 3.25 MHz, NE Z8000 and CP-200 at 3.6 MHz, CP-500 at 2 MHz)
- Micro Sistemas no. 21, June 1983 (read 2026-11-23): Z80 machine code POKEd into a REM line and run with USR 16514 on the TK82-C
- Zilog, Z80-CPU and Z80A-CPU Product Specification, March 1978, bitsavers copy (read 2026-11-23): 158 instructions including all 78 of the 8080A's; 17 internal registers and 208 bits of read/write storage; main and alternate register sets switched by exchange instructions; IX and IY; the I and R registers; three interrupt modes plus a non-maskable interrupt to 0066H; a 16-bit address bus for up to 64K bytes; a single 5-volt supply; 1.0 microsecond instruction execution
- IEEE Spectrum, Chip Hall of Fame: Zilog Z80 Microprocessor, 30 June 2017, updated 4 December 2023 (read 2026-11-23): Faggin and Ungermann founded Zilog; Faggin, Ungermann and Masatoshi Shima drew the circuits; first prototype in March 1976; about US$25; the Osborne 1, KayPro II, TRS-80, MSX, printers, fax machines, modems and satellites; says Zilog still makes the Z80
- Hackaday, End-of-Life for Z80 CPU and peripherals announced, 19 April 2024 (read 2026-11-23): Zilog, owned by Littelfuse, published a product change notification on 15 April ending virtually all of the Z84C00 range and its peripherals; last orders until 14 June 2024; the eZ80 continues
- The Register, Zilog to end standalone sales of the legendary Z80 CPU, 22 April 2024 (read 2026-11-23): the notice blames the wafer foundry's end of support; 1976 debut on a 4-micron process, 8,500 transistors, typically 2.5 MHz; Sinclair ZX machines, Pac-Man, Roland synthesizers, the TI-84 Plus CE
- Micro Sistemas no. 42, March 1985, letters (read 2026-11-23): a TK-85 owner explains that the Z80 pairs two 8-bit registers into a 16-bit word and that A0 to A15 address 65,536 bytes, but the Sinclair-line machines set A15 so only 32,768 positions are distinct; POKE 57344 lands at 24577; a routine runs at 16514 and not at 49282
- Micro Sistemas no. 17, February 1983 (read 2026-11-23): the first lesson of the magazine's new Curso de Assembler, 'Assembler para a Z80', taught by Amaury Moraes Júnior