Difference between revisions of "Z80"
From Sega Retro
Revision as of 11:42, 19 October 2017
The Z80 is an enhanced (and fully binary-compatible) version of the Intel 8080. The Z80 was set in motion at the end of 1974, when Federico Faggin left Intel, after working on the 8080, to found Zilog with Ralph Ungermann. By July 1976, Zilog had the Z80 on the market. It was designed to be binary compatible with the Intel 8080 so that code for the latter could run unmodified on it, notably the CP/M operating system. Masatoshi Shima, the principal logic and transistor level-designer of the 4004 and the 8080, designed most of the microarchitecture as well as the gate and transistor levels of the Z80.
The Z80 offered five real improvements over the 8080:
- an enhanced instruction set including the new indexing registers IX/IY and instructions for them, many new bit-manipulating and shifting operations, and enhanced capabilities for processing interrupts;
- two instances of each of the 16-bit registers AF (accumulator+flags), BC, DE, and HL, which could be quickly switched between to speed up response to interrupts or other context-switching;
- a limited ability for SIMD (Single Instruction, Multiple Data) with instructions to perform copy, compare, input, and output over contiguous blocks of memory;
- a built-in DRAM refresh address counter that would otherwise have to be provided by external circuitry;
- a much lower price.
The Z80 quickly took over from the 8080 in the market, and became the most popular 8-bit CPU of all time - indeed, if one takes the absolute size of the market into account, the most successful CPU ever. Later versions increased in speed from the early models' 1 MHz up to as much as 20 MHz.
Perhaps key to the success of the Z80 was the built-in DRAM controller and memory refresh register (R), which allowed systems to be built with fewer support chips. Competitor MOS Technology, Inc, maker of the famous 6502 processor, later included this very useful feature in its second generation color video chip VIC-II.
- Sega Master System and Game Gear.
- Neo Geo Pocket and Neo Geo Pocket Color.
- Both the SNK Neo Geo and Sega Mega Drive video games consoles use it as an audio coprocessor.
- Sega's SG-1000 uses the NEC 780C, a binary-compatible clone of the Z80.
- As a sound coprocessor in many, many arcade game systems, including many of Sega's 1985-1993 boards.
- The Z80 and Motorola 6502 were the main consoles in many early (1976-1985) arcade systems, with some companies continuing to use the Z80 as a main CPU for about six-ten years beyond that point.
- Nintendo's Game Boy and Game Boy Color handheld game systems used a Z80 clone (GB-Z80) manufactured by Sharp Corporation, which had a markedly different instruction set and differences in the complement of registers but shared many of the same opcodes (in terms of both hexadecimal data and written mnemonics). The Sharp Z80 in the Game Boy Color is notable for its ability to selectively double its clock speed when running Game Boy Color software.
- The lower-end Texas Instruments set of graphic calculators use Z80 as a central processor, while more advanced models use the Motorola 68000 as their CPU.