Category : Miscellaneous Language Source Code
Archive   : ATIDRIV.ZIP
Filename : VGAEXTRA.H

 
Output of file : VGAEXTRA.H contained in archive : ATIDRIV.ZIP
#include /* pick up definition for __emit__ */

typedef struct { /* RGB structure */
char Red;
char Green;
char Blue;
} RGB;
typedef char DACarray[256][3]; /* Array to hold DAC register values */
enum { red=0,grn=1,blu=2 }; /* possible array indices for R, G, B */

void far flashmodeon(void) /* blank screen and put VGA into fast mode */
{
__emit__(0xba,0xc4,0x03,0xb0,0x01,0xee,0x42,0xec,0x0c,0x20,0xee,0xba,0xda,0x03);
}

void far flashmodeoff(void) /* display screen and put VGA into normal mode */
{
__emit__(0xba,0xc4,0x03,0xb0,0x01,0xee,0x42,0xec,0x24,0xdf,0xee,0xba,0xda,0x03);
}

void far dacpalette(char far *Pal) /* load all 256 DAC registers */
{
__emit__(0x1E,0xC5,0x76,&Pal,0xBA,0xC8,0x03,0xB0,0x00,0xEE,0x42,0xFA,0xFC,0x52,
0xB9,0x80,0x01,0xBA,0xDA,0x03,0xEC,0x24,0x08,0x75,0xFB,0xEC,0x24,0x08,
0x74,0xFB,0x5A,0x54,0x58,0x3B,0xC4,0x75,0x18,0xF3,0x6E,0x52,0xB9,0x80,
0x01,0xBA,0xDA,0x03,0xEC,0x24,0x08,0x75,0xFB,0xEC,0x24,0x08,0x74,0xFB,
0x5A,0xF3,0x6E,0xEB,0x0D,0x33,0xC9,0xAD,0xEE,0x8A,0xC4,0xEE,0xAC,0xEE,
0xFE,0xC1,0x75,0xF5,0xFB,0x1F);
}


  3 Responses to “Category : Miscellaneous Language Source Code
Archive   : ATIDRIV.ZIP
Filename : VGAEXTRA.H

  1. Very nice! Thank you for this wonderful archive. I wonder why I found it only now. Long live the BBS file archives!

  2. This is so awesome! 😀 I’d be cool if you could download an entire archive of this at once, though.

  3. But one thing that puzzles me is the “mtswslnkmcjklsdlsbdmMICROSOFT” string. There is an article about it here. It is definitely worth a read: http://www.os2museum.com/wp/mtswslnk/