VOGONS

Common searches


First post, by videogamer555

User metadata
Rank Member
Rank
Member

Over on http://www.techhelpmanual.com/114-video_modes.html it says it's an EGA and VGA mode that supports 4 or 16 colors. So what selects how many colors it supports? Is it 4 colors on an EGA graphics card and 16 colors on a VGA graphics card? Also how are its colors addressed? I'm sure that the 16 color variant is divided into 4 bit-planes, but what about the 4 color mode? Is it also divided into bit planes? Or is it like older 4 color CGA modes all in one bit-plane?

Reply 1 of 6, by mkarcher

User metadata
Rank l33t
Rank
l33t

Mode 10h is supposed to support 16 colors. To store 640x350 pixels with 16 colors, you need 112 kilobytes of video RAM. The basic configuration of EGA only shipped with 64KB of video RAM. The EGA BIOS configured the EGA card in a creative way, so that instead of 4 planes of 16KB the video memory appears like 2 planes of 32KB. Thus the video mode 10h on 64KB EGA cards appears to have 2 bit planes. One bit plane consists of planes 0 and 1, and the second plane consists of planes 2 and 3.

Reply 2 of 6, by videogamer555

User metadata
Rank Member
Rank
Member
mkarcher wrote on 2022-11-29, 22:19:

Mode 10h is supposed to support 16 colors. To store 640x350 pixels with 16 colors, you need 112 kilobytes of video RAM. The basic configuration of EGA only shipped with 64KB of video RAM. The EGA BIOS configured the EGA card in a creative way, so that instead of 4 planes of 16KB the video memory appears like 2 planes of 32KB. Thus the video mode 10h on 64KB EGA cards appears to have 2 bit planes. One bit plane consists of planes 0 and 1, and the second plane consists of planes 2 and 3.

So with EGA with only 64KB, it does 640x350 with only 4-colors (using the first bit plane). But with an EGA card with at least 112KB, it can handle 2 planes of 64KB each, which allows all 16 colors to be used. Is that what you mean?

Reply 3 of 6, by videogamer555

User metadata
Rank Member
Rank
Member

How about PC Junior video modes (modes 0x08, 0x09, and 0x0A)? The first 2 support 16 colors, and the third supports 4 colors. Do the 16 color PCJr modes work like EGA, with separate bit planes? Or do they use a single bit plane for all the image data (like CGA 4-color modes, but with 16 colors instead)? And how about the last PCJr mode with 4 colors? Does it use separate bit planes? Or does it use a single bit plane?

Reply 4 of 6, by mkarcher

User metadata
Rank l33t
Rank
l33t
videogamer555 wrote on 2022-11-30, 06:11:

So with EGA with only 64KB, it does 640x350 with only 4-colors (using the first bit plane). But with an EGA card with at least 112KB, it can handle 2 planes of 64KB each, which allows all 16 colors to be used. Is that what you mean?

EGA always has four bit planes internally. The design of the EGA card is focussed around a 32-bit memory interface. Because the 32 bit memory interface is four times as wide as the bus interface, but every bus address maps to a complete 32-bit word of EGA memory, the concept of 4 planes was established. An EGA card with 64KB doesn't have a "single plane" (of 64KB), as your reply seems to assume, but it has four planes, of 16KB each. The EGA memory interface supports four "banks". Each of the banks has 64KB and consists of 16KB per plane. So the size of each plane is 16KB, 32KB (two banks populated), 48KB (three banks populated) or 64KB.

The 640x350 mode requires planes of 32KB each, so you got enough bits per plane. If the EGA card only has 16KB per plane, the graphics controller is configured to generate a virtual plane 0 from planes 0 and 1 and a virtual plane 2 from planes 2 and 3. So we get sufficiently bug virtual planes, but only two of them. If the EGA card has two banks populated (128KB), the concept if virtual planes is not enabled, so four planes are actually usable. Two virtual planes allow for four colors only, whereas four planes allow for 16 colors. Even on 64KB EGA cards, the creation of two virtual planes is only invoked in modes with 640x350 pixels. Mode 0Dh and 0Eh always operate with four planes and 16 colors, irrespective of the amount of installed memory.

Reply 5 of 6, by Jo22

User metadata
Rank l33t++
Rank
l33t++
videogamer555 wrote on 2022-11-29, 22:00:

Is that chart really okay?
The entry for mode 13h says graphic 640x480 8x16 256 VGA a000 anlg.
Or does it meant from the monitor's perspective?

"Time, it seems, doesn't flow. For some it's fast, for some it's slow.
In what to one race is no time at all, another race can rise and fall..." - The Minstrel

//My video channel//

Reply 6 of 6, by Gmlb256

User metadata
Rank l33t
Rank
l33t
Jo22 wrote on 2022-12-17, 14:17:
Is that chart really okay? The entry for mode 13h says graphic 640x480 8x16 256 VGA a000 anlg. Or does it meant from the monito […]
Show full quote
videogamer555 wrote on 2022-11-29, 22:00:

Is that chart really okay?
The entry for mode 13h says graphic 640x480 8x16 256 VGA a000 anlg.
Or does it meant from the monitor's perspective?

It is a copy/paste mistake, the resolution for mode 13h is 320x200. 640x480 with 256 colors is pretty much SVGA territory.

VIA C3 Nehemiah 1.2A @ 1.46 GHz | ASUS P2-99 | 256 MB PC133 SDRAM | GeForce3 Ti 200 64 MB | Voodoo2 12 MB | SBLive! | AWE64 | SBPro2 | GUS