256-Color Vga Programming In C at Color

256-Color Vga Programming In C. 640k really is enough for anyone by robert w. /* write the data */ } /***** * wait_for_retrace * * wait until the *beginning* of a vertical retrace cycle (60hz).

Fascinating 256 color VGA Thiemos Archiv
Fascinating 256 color VGA Thiemos Archiv from maettig.com

// vga is a pointer to address 0xa000 what the mem command passes the segment base and the offset of a part of memory : Therefore an ega is a cga squared, and a vga is an ega squared ;. In this case the screen base is the segment, and we are starting at the top of the screen;

Fascinating 256 color VGA Thiemos Archiv

4x4 = 16 ega = 16 colors. This gets more into assembly optimization of vga graphics and coding for extreme performance. } i always translate the x, y coordinates of my screen to an offset of video memory. David brackeen has a very good tutorial on vga graphics programming for dos in c programming.