Enhanced Graphics Adapter
The Enhanced Graphics Adapter (EGA) is a graphics adapter for IBM PCs, and it became a widely used computer display standard in 1984. It came after the CGA standard, which was introduced with the original IBM PC. EGA was itself replaced by the VGA standard in 1987.
Besides the original EGA card made by IBM, many other companies made compatible cards. EGA graphics modes also continued to be supported by VGA and later standards.
History
IBM introduced the Enhanced Graphics Adapter (EGA) in October 1984, shortly after its new PC/AT. The IBM EGA card can be installed in earlier IBM PCs, but it needs a ROM upgrade on the mainboard.
Chips and Technologies' first product, announced in September 1985, was a four-chip EGA chipset that did the work of 19 of IBM's own chips on the original EGA. By that November's COMDEX, more than six companies had announced EGA-compatible boards based on C&T's chipset. The first EGA-compatible board was the Vega, released in December 1985 by Video Seven. It used C&T's chipset and was half the length of the original IBM EGA board. Between 1984 and 1987, several other companies made compatible cards, such as the Autoswitch EGA or Genoa Systems' Super EGA chipset. In 1987, the EGA standard was replaced by MCGA and VGA, which came with the PS/2 computer line.
Adoption
EGA was the first standard of its kind to include color graphics, following Hercules graphics, which combined high-quality text with monochrome graphics. By 1985, the magazine InfoWorld called EGA the "next graphics standard," but said sales were "sluggish" because the cards were expensive and software support was lacking. Developers found the graphics slow at first, but commercial software began supporting EGA soon after it was introduced. Programs such as The Ancient Art of War, released in 1984, and several others released in 1985, including Microsoft Flight Simulator v2.12, Jet, Silent Service, Cyrus, and Windows 1.0, offered EGA support. By the late 1980s, EGA support was common, and it was the most popular standard for business graphics by mid-1986.
Most software from the early 1990s can run in EGA, and most commercial games use a 320 × 200 mode with 16 colors. This mode matches the CGA resolution, which helped keep older games and artwork working and let people without an enhanced EGA monitor still play. SimCity is one commercial game that uses a 640 × 350 mode with 16 colors.
Hardware design
The original IBM EGA is a card that fits into an ISA slot in the PC and has 64 KB of built-in RAM. An optional daughter-board adds more memory, bringing the total up to 192 KB. Without these upgrades, the card could show only four colors in 640 × 350 mode. Like the CGA, the EGA sends its picture to a RGB monitor, but it does not have composite video output. Older monitors and newer enhanced color monitors made for EGA can both be used. EGA monitors use a dual-sync design that can switch between the two picture sizes used by the card.
Many EGA cards have DIP switches on the back that set the monitor type. When CGA is chosen, the card works in 200-line mode and uses 8×8 characters in text mode. When EGA is chosen, it works in 350-line mode and uses 8×14 text. Some cards made by other companies came with the full 128 KB of memory, and others had up to 256 KB. This extra memory allowed multiple graphics pages, several character sets for text, and large scrolling displays. A few of these cards, such as the ATI Technologies EGA Wonder, went further and offered extra features, including graphics modes up to 800 × 560 and automatic detection of the monitor type.
Capabilities
EGA can show up to 16 colors at once, chosen either from a fixed set or from a gamut of 64 colors (6-bit RGB), depending on the mode. It works at several resolutions, up to 640 × 350 pixels, and also has two black-and-white modes at higher resolutions. EGA cards include a ROM that adds extra graphics functions to the system BIOS, and a custom CRT controller (CRTC). The EGA's CRTC supports all the modes of the MDA and CGA cards, but it is not fully compatible with the Motorola MC6845 chip used in those cards, so programs that set modes directly may give different results on EGA. Its 16-color graphic modes use bit planes and mask registers together with bitwise operations for accelerated graphics. The same methods were later used in VGA.
In the 640 × 350 high-resolution mode, which needs an enhanced EGA monitor, 16 colors can be chosen from 64. The 640 × 200 and 320 × 200 modes work with older CGA software and monitors, and they can show the full CGA palette at once. Pixels in these modes have a shape described by their aspect ratio. With EGA, all 16 CGA colors can be used together, and the CGA's alternate brown color is included in the larger palette. Only a few games, such as the DOS version of Super Off Road, supported the larger palette in 200-line modes. EGA uses a female nine-pin DE-9 connector, the same as CGA. The original IBM EGA card has a feature connector that gives access to two RCA connectors at the back, and it also has a light pen interface. EGA's native graphics modes are planar, unlike the interleaved CGA and Hercules modes.
| Index | Default palette number | Default palette color | rgbRGB | Hexadecimal |
|---|---|---|---|---|
| 0 | 0 | Black | 000000 | #000000 |
| 1 | 1 | Blue | 000001 | #0000AA |
| 2 | 2 | Green | 000010 | #00AA00 |
| 3 | 3 | Cyan | 000011 | #00AAAA |
| 4 | 4 | Red | 000100 | #AA0000 |
| 5 | 5 | Magenta | 000101 | #AA00AA |
| 20 | 6 | Brown | 010100 | #AA5500 |
| 7 | 7 | White / light gray | 000111 | #AAAAAA |
| 56 | 8 | Dark gray / bright black | 111000 | #555555 |
| 57 | 9 | Bright Blue | 111001 | #5555FF |
| 58 | 10 | Bright green | 111010 | #55FF55 |
| 59 | 11 | Bright cyan | 111011 | #55FFFF |
| 60 | 12 | Bright red | 111100 | #FF5555 |
| 61 | 13 | Bright magenta | 111101 | #FF55FF |
| 62 | 14 | Bright yellow | 111110 | #FFFF55 |
| 63 | 15 | Bright white | 111111 | #FFFFFF |
| Pin | Name | EGA modes | CGA compatible modes |
|---|---|---|---|
| 1 | GND | Ground | Ground |
| 2 | SR | Secondary Red (Intensity) | Ground |
| 3 | PR | Primary Red | Red |
| 4 | PG | Primary Green | Green |
| 5 | PB | Primary Blue | Blue |
| 6 | SG | Secondary Green (Intensity) | Intensity |
| 7 | SB | Secondary Blue (Intensity) | Reserved |
| 8 | H | Horizontal sync | Horizontal sync |
| 9 | V | Vertical sync | Vertical sync |
| Mode | Plane size |
|---|---|
| 200-line modes, 640 × 350 × 2 mode | 8 KB |
| 640 × 350 with 64 KB RAM | 16 KB |
| 640 × 350 with 128 KB RAM | 32 KB |
Legacy
Some modern games still use EGA-style color palettes, such as The Crimson Diamond, when they want to recreate the look of older games.

Quiz time!
5 questions about Enhanced Graphics Adapter
Which graphics standard replaced EGA in 1987?
Pictures
This article is a child-friendly adaptation of the Wikipedia article on Enhanced Graphics Adapter, available under CC BY-SA 4.0.
Images from Wikimedia Commons. Tap any image to view credits and license.