Safekipedia

Enhanced Graphics Adapter

Discoverer · ages 10+Adapted from Wikipedia
An original IBM EGA graphics card from the 1980s, with 64 KB of memory. It could be upgraded to 256 KB by plugging an optional memory board into the blue connector labeled J5.

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

IBM MDA, CGA and EGA monitors, all supported by the EGA card

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 320 × 200 × 16 colors, CGA-compatible palette
EGA 640 × 200 × 16 colors, CGA-compatible palette

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.

EGA 640 × 350 × 16 colors, EGA palette
Screenshot of the Arachne web browser using the 640 × 350 graphics mode. The screenshot contains 14 colors.
Default EGA 16-color palette, matching CGA colors
IndexDefault palette numberDefault palette colorrgbRGBHexadecimal
00Black000000#000000
11Blue000001#0000AA
22Green000010#00AA00
33Cyan000011#00AAAA
44Red000100#AA0000
55Magenta000101#AA00AA
206Brown010100#AA5500
77White / light gray000111#AAAAAA
568Dark gray / bright black111000#555555
579Bright Blue111001#5555FF
5810Bright green111010#55FF55
5911Bright cyan111011#55FFFF
6012Bright red111100#FF5555
6113Bright magenta111101#FF55FF
6214Bright yellow111110#FFFF55
6315Bright white111111#FFFFFF
EGA DE-9 connector pin signals
PinNameEGA modesCGA compatible modes
1GNDGroundGround
2SRSecondary Red (Intensity)Ground
3PRPrimary RedRed
4PGPrimary GreenGreen
5PBPrimary BlueBlue
6SGSecondary Green (Intensity)Intensity
7SBSecondary Blue (Intensity)Reserved
8HHorizontal syncHorizontal sync
9VVertical syncVertical sync
EGA video plane sizes
ModePlane size
200-line modes,
640 × 350 × 2 mode
8 KB
640 × 350 with 64 KB RAM16 KB
640 × 350 with 128 KB RAM32 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

Question 1 of 5

Which graphics standard replaced EGA in 1987?

Pictures

An EGA video card from 1985, made by Genoa Systems. Cards like this helped early personal computers display colorful graphics on screen.
Front and rear views of a TVM MD-3 CRT computer monitor from the early EGA era, showing its controls and connector.
A chart showing every character in IBM code page 437, displayed in EGA enhanced mode on an early IBM PC monitor.
A test image showing how a picture looks on an old computer screen that could display 16 colors, using the EGA and CGA color palettes.
A chart showing the full range of 64 colors that the EGA graphics standard could display on early computer screens.
A color test chart showing the 16-color EGA palette, a set of colors used by early IBM-compatible computer graphics.
A test image showing the 16 colors that the EGA graphics standard could display on early personal computer screens.

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.