Category : Assembly Language Source Code
Archive   : VGAKIT60.ZIP
Filename : EXAMPLE.C

 
Output of file : EXAMPLE.C contained in archive : VGAKIT60.ZIP
/*
VGAKIT Version 6.0

Copyright 1988,89,90,91,92,93,94 John Bridges
Free for use in commercial, shareware or freeware applications

EXAMPLE.C
*/


extern int maxx,maxy;

main(argc,argv)
int argc;
char **argv;
{
unsigned char palbuf[256][3];
unsigned long x2;
int svga;
unsigned int color;
unsigned int x,y;

for(x=0;x<256;x++)
{
y=x&63;
if(x&64) y=63-y;
palbuf[x][0]=y;
palbuf[x][1]=y*y/63;
y=(x>>1)&63;
if(x&128) y=63-y;
palbuf[x][2]=y;
}
svga=whichvga();
if(svga)
{
svga640();
}
else
{
mode13x();
}
setmany(palbuf,0,256);
for(x=0;x {
for(y=0;y {
x2=(x+1)*(maxx-x);
color=((x2*x2)/((y+1)*(long)(maxy-y))/113)&0xff;
if(svga)
{
point(x,y,color);
point((maxx-1)-x,y,color);
point(x,(maxy-1)-y,color);
point((maxx-1)-x,(maxy-1)-y,color);
}
else
{
point13x(x,y,color);
point13x((maxx-1)-x,y,color);
point13x(x,(maxy-1)-y,color);
point13x((maxx-1)-x,(maxy-1)-y,color);
}
}
}
getch();
txtmode();
}






  3 Responses to “Category : Assembly Language Source Code
Archive   : VGAKIT60.ZIP
Filename : EXAMPLE.C

  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/