web browser using the graphics mode. The screenshot contains 14 colors. characters with cursor EGA produces a display of up to 16 colors (using a fixed
palette, or one selected from a
gamut of 64 colors (6-bit RGB), depending on mode) at several resolutions up to 640 × 350 pixels, as well as two monochrome modes at higher resolutions. EGA cards include a ROM to extend the system
BIOS for additional graphics functions, and a custom
CRT controller (CRTC). but it is not fully register-compatible with the
Motorola MC6845 used in those cards, so software that directly programs the registers to select modes may produce different results on the EGA. Supported resolutions are 320 × 200 and 640 × 200 (on a CGA or EGA monitor), 720 × 350 and 640 × 350 (on an MDA monitor) and 320 × 350 and 640 × 350 (on an EGA monitor). EGA scans at 21.8 kHz when 350-line modes are used and 15.7 kHz when 200-line modes are used. For both horizontal scan rates, the vertical scan rate is 60 Hz. together with CPU
bitwise operations for
accelerated graphics. The same techniques went on to be used in the
VGA.
Modes EGA supports: • × 16 colors (from a 6 bit palette of 64 colors), pixel
aspect ratio of 1:1.37 • × 2 colors, pixel aspect ratio of 1:1.37 • × 16 colors, pixel aspect ratio of 1:2.4 • × 16 colors, pixel aspect ratio of 1:1.2 Text modes: • with pixel font (effective resolution of ) • with pixel font (effective resolution of ) • with pixel font (effective resolution of ) • with pixel font (effective resolution of ) Extended graphics modes of third-party boards: • • • •
Color palette With the EGA, all
16 CGA colors can be used simultaneously, and each can be mapped in from a larger palette of 64 colors (two bits each for red, green and blue). The
CGA's alternate brown color is included in the larger palette, so it can be used without any additional display hardware. The later VGA standard built on this by mapping each of the 64 colors in from a larger, customizable, palette of 256. Standard EGA monitors do not support use of the extended color palette in 200-line modes, because the monitor cannot distinguish between being connected to a CGA card or being connected to an EGA card outputting a 200-line mode. EGA redefines some pins of the connector to carry the extended color information. If the monitor were connected to a CGA card, these pins would not carry valid color information, and the screen might be garbled if the monitor were to interpret them as such. For this reason, standard EGA monitors will use the CGA pin assignment in 200-line modes, so the monitor can also be used with a CGA card. Some EGA monitors are
switchable, meaning that they can be set up to use the full palette even in 200-line modes, often through a mechanical switch. Only a few commercial games were released with support for the extended color palette in or (including the DOS version of
Super Off Road). When selecting a color from the EGA palette, two bits are used for the red, green and blue channels to signal values of 0, 1, 2 or 3. For instance, to select the color magenta, the red and blue values would be medium intensity (2, or 10 in binary) and the green value would be off (0). The table below displays an example palette matching the standard 16 CGA colors, with their representations in rgbRGB binary (internal card bit order), where the lowercase letters are the low-intensity bits, and uppercase letters are high-intensity bits. Decimal and hexadecimal values (converted to equivalent
24-bit sRGB web colors) are also shown. The following images illustrate the full EGA palette in detail. File:EGA64 Full Palette.png|Full 64-color EGA palette illustration File:Ega palette color test chart.png|Full 64-color EGA palette test card File:Screen color test EGA 16colors.png|Screen color test with custom EGA palette
Specifications EGA uses a female nine-pin D-subminiature (
DE-9) connector for output, identical to the CGA connector. The signal standard and pinout is backward-compatible with CGA, allowing EGA monitors to be used on CGA cards and conversely. When operating in EGA modes, pins 2, 6 and 7 are repurposed for EGA's secondary RGB signals (see pinout table below). When operating in 200-line CGA modes, the EGA card is fully backward compatible with a standard IBM CGA monitor; however, third-party monitors had varying compatibility. Third-party monitors sometimes connected pin two to ground internally. When connected to an EGA card, this shorts the EGA's secondary red output to ground and can damage the card. Also, some monitors were wired with pin two as their sole ground, and these will not work with the EGA. Conversely, an EGA monitor should work with a CGA adapter, but if it is not set to CGA mode, the secondary red signal will be grounded (always zero), and the secondary blue will be floating (unconnected), causing all high-intensity colors except brown to display incorrectly, and all colors to potentially have a variable blue tint due to the indeterminate state of the unconnected secondary blue. The IBM 5154 EGA monitor has a special IBM 5153 CGA compatibility mode when operating with CGA sync signals and automatically changes to the CGA pinout to avoid all of the mentioned problems when operating in this mode. The original IBM EGA card includes a
feature connector (blue connector J4, see first photo on this page), providing access to two
RCA connectors at the back of card, in addition to several analog and digital signals that the EGA adaptor can be configured to use. Some clone cards do not have the RCA connectors. A
light pen interface is also present on the original card.
Memory mapping For color text and CGA graphics modes, video memory is mapped to 16 KB of addresses beginning at address B8000h, and in monochrome (MDA-compatible) text mode, video memory occupies 16 KB beginning at B0000h. These address mappings are for backward compatibility. For modes new to the EGA, the video memory begins at address A0000h and occupies 64 KB. The different base addresses for color vs. monochrome modes makes it possible for an EGA to be used simultaneously with a monochrome graphics card in the same computer, or for an EGA in MDA text mode to be used simultaneously with a CGA in the same computer. EGA's native graphics modes are
planar, as opposed to the interleaved CGA and
Hercules modes. Video memory is divided into four "planes" (except × 2, which has one plane), one for each component of the RGBI color space. Each pixel is represented by one bit in each plane. If a bit in the red plane is on, but none of the equivalent bits in the other pages are, a red pixel will appear in that location on screen. If all the other bits for that particular pixel were also on, it would become white, and so forth. Planes are different sizes depending on the mode: All planes reside at segment A000 in the CPU's address space. They are bank-switched, and only one plane can be read on the CPU bus at once; however, the programmer may set the control registers on the card to select which planes are written to and write to several at once. An exception is read mode 1, in which all four planes are read and compared with programmed "Color Compare" data, and a byte indicating the result of comparing all four planes can be read on the I/O bus. Software developers complained about EGA's slow performance because of its planar design, especially when using a PC or XT-class computer, or without 256K of video RAM. ==See also==