Close Back

Color.c
Change.c


Color.c

/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
*                                                                          *
*  This Program generates random colors on the screen and any charecter    *
*  on screen appears to change colours Enjoy ;)                            *
*                                                                          *
*  License : Freely Distributable under GNU public License                 *
*                                                                          *
*  Author : Rajesh _ThE gReAt                                              *
*                                                                          *
*  Contact : Rajeshgoli@yahoo.com                                          *
*                                                                          *
*  HomePage : http://www.rajeshgoli.com                                   *
*                                                                          *
*		Okay Guys thats it !                                       *
*  Remove the !kbhit() and disable CTRL-BREAK to get a real virus ! :)     *
*                                                                          *
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */

#include<stdio.h>
#include<conio.h>
#include<dos.h>
#include<math.h>
#include<string.h>
#include<ctype.h>
#include<stdlib.h>
#include<rajesh.h>

main()
{
	int i;
	char far *lemmesee;
	lemmesee = (char far *) 0xB0008001L ; /* First color location*/
	while(!kbhit())
	{
		for(i=0;i<3999 && !kbhit();i = i+2)
		{
			*(lemmesee+i) = rand()%255; /*Ensure that number<255*/
			delay(100);
		}
	}	/*End 'While'*/
	printf("\nRajesh is Great !!");   /*This is absolutely required ;)*/
	getch();        /*Ignore the !kbhit() keystoke*/
	getch();	/*Wait for the Folk to hit a key*/
	print_rajesh(); /*This function prints My name as ASCII art :> */
	return;		/*Keep The Compiler happy*/
}
/*
			Thats it Folk!
*/

change.c

#include<stdio.h>
#include<conio.h>
#include<dos.h>
#include<math.h>
#include<string.h>
#include<ctype.h>
#include<stdlib.h>
#include<rajesh.h>

main()
{
	char far *scr;
	int i;

	scr = (char far *) 0xB0008000L;

	for(i=0;i<3999;i++)
	{
		if(*(scr+i) >= 'A' && *(scr+i) <= 'Z')
		{
			*(scr+i) = *(scr+i) + 32;
			delay(2);
		}
	   else if(*(scr+i) >= 'a' && *(scr+i) <= 'z')
		{
			*(scr+i) = *(scr+i) - 32;
			delay(2);
		}
	}
	return 0;	/* Keep the compiler happy */
}