3 <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
4 <META NAME="Author" CONTENT="Joshua Neal">
5 <META NAME="Description" CONTENT="Pure VGA/SVGA hardware programming (registers, identification, and otherlow-level stuff.)">
6 <META NAME="KeyWords" CONTENT="VGA SVGA hardware video programming">
7 <TITLE>VGA/SVGA Video Programming--VGA Functional Index</TITLE>
11 <CENTER><A HREF="../home.htm">Home</A> <A HREF="#register">Register</A>
12 <A HREF="#memory">Memory</A> <A HREF="#sequencer">Sequencing</A> <A HREF="#cursor">Cursor</A>
13 <A HREF="#attribute">Attribute</A> <A HREF="#DAC">DAC</A> <A HREF="#display">Display</A>
14 <A HREF="#misc">Misc</A> <A HREF="vga.htm#index">Back</A>
15 <HR WIDTH="100%"><B>Hardware Level VGA and SVGA Video Programming Information
18 <CENTER>VGA Functional Index
19 <HR WIDTH="100%"></CENTER>
22 <P><A NAME="register"></A><B>Register Access Functions</B>
23 <BR> These fields control the
24 acessability/inaccessability of the VGA registers. These registers are
25 used for compatibiltiy with older programs that may attempt to program
26 the VGA in a fashion suited only to an EGA, CGA, or monochrome card.
29 CRTC Registers Protect Enable -- <A HREF="crtcreg.htm#11">Vertical Retrace
33 Enable Vertical Retrace Access -- <A HREF="crtcreg.htm#03">End Horizontal
34 Blanking Register</A></LI>
37 Input/Output Address Select -- <A HREF="extreg.htm#3CCR3C2W">Miscellaneous
38 Output Register</A></LI>
40 <A NAME="memory"></A><B>Display Memory Access Functions</B>
41 <BR> These fields control the
42 way the video RAM is mapped into the host CPU's address space and how memory
43 reads/writes affect the display memory.
46 Bit Mask -- <A HREF="graphreg.htm#08">Bit Mask Register</A></LI>
49 Chain 4 Enable -- <A HREF="seqreg.htm#04">Sequencer Memory Mode Register</A></LI>
52 Chain Odd/Even Enable -- <A HREF="graphreg.htm#06">Miscellaneous Graphics
56 Color Compare -- <A HREF="graphreg.htm#02">Color Compare Register</A></LI>
59 Color Don't Care -- <A HREF="graphreg.htm#07">Color Don't Care Register</A></LI>
62 Enable Set/Reset -- <A HREF="graphreg.htm#01">Enable Set/Reset Register</A></LI>
65 Extended Memory -- <A HREF="seqreg.htm#04">Sequencer Memory Mode Register</A></LI>
68 Host Odd/Even Memory Read Addressing Enable -- <A HREF="graphreg.htm#05">Graphics
69 Mode Register</A></LI>
72 Host Odd/Even Memory Write Addressing Enable -- <A HREF="seqreg.htm#04">Sequencer
73 Memory Mode Register</A></LI>
76 Logical Operation -- <A HREF="graphreg.htm#03">Data Rotate Register</A></LI>
79 Memory Map Select -- <A HREF="graphreg.htm#06">Miscellaneous Graphics Register</A></LI>
82 Memory Plane Write Enable -- <A HREF="seqreg.htm#02">Map Mask Register</A></LI>
85 Odd/Even Page Select -- <A HREF="extreg.htm#3CCR3C2W">Miscellaneous Output
89 RAM Enable -- <A HREF="extreg.htm#3CCR3C2W">Miscellaneous Output Register</A></LI>
92 Read Map Select -- <A HREF="graphreg.htm#04">Read Map Select Register</A></LI>
95 Read Mode - <A HREF="graphreg.htm#05">Graphics Mode Register</A></LI>
98 Rotate Count -- <A HREF="graphreg.htm#03">Data Rotate Register</A></LI>
101 Set/Reset -- <A HREF="graphreg.htm#00">Set/Reset Register</A></LI>
104 Write Mode -- <A HREF="graphreg.htm#05">Graphics Mode Register</A></LI>
106 <A NAME="sequencer"></A><B>Display Sequencing Functions</B>
107 <BR> These fields affect the
108 way the video memory is serialized for display.
111 256-Color Shift Mode -- <A HREF="graphreg.htm#05">Graphics Mode Register</A></LI>
114 9/8 Dot Mode -- <A HREF="seqreg.htm#01">Clocking Mode Register</A></LI>
117 Address Wrap Select -- <A HREF="crtcreg.htm#17">CRTC Mode Control Register</A></LI>
120 Alphanumeric Mode Disable -- <A HREF="graphreg.htm#06">Miscellaneous Graphics
124 Asynchronous Reset -- <A HREF="seqreg.htm#00">Reset Register</A></LI>
127 Byte Panning -- <A HREF="crtcreg.htm#08">Preset Row Scan Register</A></LI>
130 Character Set A Select -- <A HREF="seqreg.htm#03">Character Map Select
134 Character Set B Select -- <A HREF="seqreg.htm#03">Character Map Select
138 Divide Memory Address Clock by 4 -- <A HREF="crtcreg.htm#14">Underline
139 Location Register</A></LI>
142 Double-Word Addressing -- <A HREF="crtcreg.htm#14">Underline Location Register</A></LI>
145 Pixel Shift Count -- <A HREF="attrreg.htm#13">Horizontal Pixel Panning
149 Line Compare -- bit 9: <A HREF="crtcreg.htm#09">Maximum Scan Line Register</A>,
150 bit 8: <A HREF="crtcreg.htm#07">Overflow Register</A>, bits 7-0: <A HREF="crtcreg.htm#18">Line
151 Compare Register</A></LI>
154 Line Graphics Enable -- <A HREF="attrreg.htm#10">Attribute Mode Control
158 Map Display Address 13 -- <A HREF="crtcreg.htm#17">CRTC Mode Control Register</A></LI>
161 Map Display Address 14 -- <A HREF="crtcreg.htm#17">CRTC Mode Control Register</A></LI>
164 Maximum Scan Line -- <A HREF="crtcreg.htm#09">Maximum Scan Line Register</A></LI>
167 Offset -- <A HREF="crtcreg.htm#13">Offset Register</A></LI>
170 Pixel Panning Mode -- <A HREF="attrreg.htm#10">Attribute Mode Control Register</A></LI>
173 Preset Row Scan -- <A HREF="crtcreg.htm#08">Preset Row Scan Register</A></LI>
176 Scan Doubling -- <A HREF="crtcreg.htm#09">Maximum Scan Line Register</A></LI>
179 Screen Disable -- <A HREF="seqreg.htm#01">Clocking Mode Register</A></LI>
182 Shift Four Enable -- <A HREF="seqreg.htm#01">Clocking Mode Register</A></LI>
185 Shift/Load Rate -- <A HREF="seqreg.htm#01">Clocking Mode Register</A></LI>
188 Shift Register Interleave Mode -- <A HREF="graphreg.htm#05">Graphics Mode
192 Start Address -- bits 15-8: <A HREF="crtcreg.htm#0C">Start Address High
193 Register</A>, bits 7-0: <A HREF="crtcreg.htm#0D">Start Address Low Register</A></LI>
196 Sycnchronous Reset -- <A HREF="seqreg.htm#00">Reset Register</A></LI>
199 Word/Byte Mode Select -- <A HREF="crtcreg.htm#17">CRTC Mode Control Register</A></LI>
201 <A NAME="cursor"></A><B>Cursor Functions</B>
202 <BR> These fields affect the
203 operation of the cursor displayed while the VGA hardware is in text mode.
206 Cursor Disable -- <A HREF="crtcreg.htm#0A">Cursor Start Reguster</A></LI>
209 Cursor Location -- bits 15-8: <A HREF="crtcreg.htm#0E">Cursor Location
210 High Register</A>, bits 7-0: <A HREF="crtcreg.htm#0F">Cursor Location Low
214 Cursor Scan Line End -- <A HREF="crtcreg.htm#0B">Cursor End Register</A></LI>
217 Cursor Scan Line Start -- <A HREF="crtcreg.htm#0A">Cursor Start Reguster</A></LI>
220 Cursor Skew -- <A HREF="crtcreg.htm#0B">Cursor End Register</A></LI>
222 <A NAME="attribute"></A><B>Attribute Functions</B>
223 <BR> These fields control the
224 way the video data is submitted to the RAMDAC, providing color/blinking
225 capability in text mode and facilitating the mapping of colors in graphics
229 8-bit Color Enable -- <A HREF="attrreg.htm#10">Attribute Mode Control Register</A></LI>
232 Attribute Address -- <A HREF="attrreg.htm#3C0">Attribute Address Register</A></LI>
235 Attribute Controller Graphics Enable -- <A HREF="attrreg.htm#10">Attribute
236 Mode Control Register</A></LI>
239 Blink Enable -- <A HREF="attrreg.htm#10">Attribute Mode Control Register</A></LI>
242 Color Plane Enable -- <A HREF="attrreg.htm#12">Color Plane Enable Register</A></LI>
245 Color Select 5-4 -- <A HREF="attrreg.htm#14">Color Select Register</A></LI>
248 Color Select 7-6 -- <A HREF="attrreg.htm#14">Color Select Register</A></LI>
251 Internal Palette Index -- <A HREF="attrreg.htm#000F">Palette Registers</A></LI>
254 Monochrome Emulation -- <A HREF="attrreg.htm#10">Attribute Mode Control
258 Overscan Palette Index -- <A HREF="attrreg.htm#11">Overscan Color Register</A></LI>
261 Underline Location -- <A HREF="crtcreg.htm#14">Underline Location Register</A></LI>
264 Palette Address Source -- <A HREF="attrreg.htm#3C0">Attribute Address Register</A></LI>
267 Palette Bits 5-4 Select -- <A HREF="attrreg.htm#10">Attribute Mode Control
270 <A NAME="DAC"></A><B>DAC Functions</B>
271 <BR> These fields allow control
272 of the VGA's 256-color palette that is part of the RAMDAC.
275 DAC Write Address -- <A HREF="colorreg.htm#3C8">DAC Address Write Mode
279 DAC Read Address -- <A HREF="colorreg.htm#3C7W">DAC Address Read Mode Register</A></LI>
282 DAC Data -- <A HREF="colorreg.htm#3C9">DAC Data Register</A></LI>
285 DAC State -- <A HREF="colorreg.htm#3C7R">DAC State Register</A></LI>
287 <A NAME="display"></A><B>Display Generation Functions</B>
288 <BR> These fields control the
289 formatting and timing of the VGA's video signal output.
292 Clock Select -- <A HREF="extreg.htm#3CCR3C2W">Miscellaneous Output Register</A></LI>
295 Display Disabled -- <A HREF="extreg.htm#3xAR">Input Status #1 Register</A></LI>
298 Display Enable Skew -- <A HREF="crtcreg.htm#03">End Horizontal Blanking
302 Divide Scan Line Clock by 2 -- <A HREF="crtcreg.htm#17">CRTC Mode Control
306 Dot Clock Rate -- <A HREF="seqreg.htm#01">Clocking Mode Register</A></LI>
309 End Horizontal Display -- <A HREF="crtcreg.htm#01">End Horizontal Display
313 End Horizontal Blanking -- bit 5: <A HREF="crtcreg.htm#05">End Horizontal
314 Retrace Register</A>, bits 4-0: <A HREF="crtcreg.htm#03">End Horizontal
315 Blanking Register</A>,</LI>
318 End Horizontal Retrace -- <A HREF="crtcreg.htm#05">End Horizontal Retrace
322 End Vertical Blanking -- <A HREF="crtcreg.htm#16">End Vertical Blanking
326 Horizontal Retrace Skew -- <A HREF="crtcreg.htm#05">End Horizontal Retrace
330 Horizontal Sync Polarity -- <A HREF="extreg.htm#3CCR3C2W">Miscellaneous
331 Output Register</A></LI>
334 Horizontal Total -- <A HREF="crtcreg.htm#00">Horizontal Total Register</A></LI>
337 Memory Refresh Bandwidth -- <A HREF="crtcreg.htm#11">Vertical Retrace End
341 Start Horizontal Blanking -- <A HREF="crtcreg.htm#02">Start Horizontal
342 Blanking Register</A></LI>
345 Start Horizontal Retrace -- <A HREF="crtcreg.htm#04">Start Horizontal Retrace
349 Start Vertical Blanking -- bit 9: <A HREF="crtcreg.htm#09">Maximum Scan
350 Line Register</A>, bit 8: <A HREF="crtcreg.htm#07">Overflow Register</A>,
351 bits 7-0: <A HREF="crtcreg.htm#15">Start Vertical Blanking Register</A></LI>
354 Sync Enable -- <A HREF="crtcreg.htm#17">CRTC Mode Control Register</A></LI>
357 Vertical Display End -- bits 9-8: <A HREF="crtcreg.htm#07">Overflow Register</A>,
358 bits 7-0: <A HREF="crtcreg.htm#12">Vertical Display End Register</A></LI>
361 Vertical Retrace End -- <A HREF="crtcreg.htm#11">Vertical Retrace End Register</A></LI>
364 Vertical Retrace -- <A HREF="extreg.htm#3xAR">Input Status #1 Register</A></LI>
367 Vertical Retrace Start -- bits 9-8: <A HREF="crtcreg.htm#07">Overflow Register</A>,
368 bits 7-0: <A HREF="crtcreg.htm#10">Vertical Retrace Start Register</A></LI>
371 Vertical Sync Polarity -- <A HREF="extreg.htm#3CCR3C2W">Miscellaneous Output
375 Vertical Total -- bits 9-8: <A HREF="crtcreg.htm#07">Overflow Register</A>,
376 bits 7-0: <A HREF="crtcreg.htm#06">Vertical Total Register</A></LI>
378 <A NAME="misc"></A><B>Miscellaneous Functions</B>
379 <BR> These fields are used to
380 detect the state of possible VGA hardware such as configuration switches/jumpers
381 and feature connector inputs.
384 Feature Control Bit 0 -- <A HREF="extreg.htm#3CAR3xAW">Feature Control
388 Feature Control Bit 1 -- <A HREF="extreg.htm#3CAR3xAW">Feature Control
392 Switch Sense -- <A HREF="extreg.htm#3C2R">Input Status #0 Register</A></LI>
394 Notice: All trademarks used or referred to on this page are the property
395 of their respective owners.
396 <BR>All pages are Copyright © 1997, 1998, J. D. Neal, except where
397 noted. Permission for utilization and distribution is subject to the terms
398 of the <A HREF="license.htm">FreeVGA Project Copyright License</A>.