123 Eng

Engineering the engineers™


Latest Jobs   Forum Map

 


Home
Source Codes
Engineering Colleges

Training  Reports
Seminar Reports
Placement Papers

Forums

   Computer Science / IT
   Electronics
   Electrical
   Mechanical
   Chemical
   Civil

   CAT / MBA

   GMAT / Foreign MBA
Latest Jobs

Engineering Jobs / Technical Jobs
Management Jobs

Sitemap
Terms of use

Displaying  Source Code(s)  
 

 
falling of charecters

--------------------------------------------------------------------------------

Description : IN THIS PROGRAM ALL THE CHARECTERS WILL FALL DOWN ONE BY ONE. ACCORDING TO THE delay() FUNCTION. THIS WILL WORK ONLY IN DOS(NOT IN UNIX/LINUX). JUST EXECUTE THE exe FILE AND ENJOY.

#include<dos.h>
void interrupt our();
void interrupt (*prev)();
char far *scr=(char far*)0xB0008000L; // 0xB0008000L is the first address of the charecter of the screen
int j;
static i;
char d,e=' ',t;
void main()
{
prev=getvect(8);
setvect(8,our);
keep(0,500);
}
void interrupt our()
{
for(i=0;i<=4000;i+=2)
{
d=*(scr+i);
if(d==e)
continue;
*(scr+i)=e;
for(j=160;j<=3800;j+=160)
{
t=*((scr+i)+j);
*((scr+i)+j)=d;
delay(20);
*((scr+i)+j)=t;
}
break;
}
(*prev)();
}
 

 

 

Contribute content or training reports / feedback / Comments
job placement papers
All rights reserved copyright 123ENG