Please read the following instructions carefully before submitting assignment:
It should be clear that your assignment will not get any credit if:
The objective of this assignment is to enhance your knowledge about;
Write a TSR program that work like a Screen Saver. If no operation performed for 5 seconds then your Screen Saver must be activated i.e. a blank screen must appear with your VU ID printed on the screen at random places. In Screen Saver mode, your ID shall keep on changing its position on output screen randomly after every 1 second. Sample output of the desired program is shown in the form of snapshots on Page-2. If any key pressed then your previous screen should be restored.
You are required to submit two files in Zip format through LMS:
Hint: The desired task can easily be achieved by modifying “Timer & Keyboard Interrupt Program” given in your handouts at page # 37.
Please Discuss here about this assignment.Thanks
See below helping tutorial for compiling C programs ....
check download section on lms then generate .com file.click on run then wait for sometime then u can see the output
does it work in Dev C++???
you need to modify the code. Code given at page 37 simply takes 5 characters as input and then remain TSR
kashif bhai when you upload the complete idea of this assignment
The solution is so obvious... just modify the code given at pages 34 to 37.
Osama bhai program type kr lia h lakin output show nhi rwa rha
share or email me your code with the errors you are getting. If there is no error then write the steps you follow.
Here is the code at page 37
where we made changes ...??
void interrupt (*oldTimer)( ); //corrected
void interrupt (*oldKey)( ); //corrected
void interrupt newTimer ( );
void interrupt newKey ( );
char far *scr = (char far* ) 0xB8000000;
int i, t = 0, m = 0;
char charscr ;
void main( )
oldTimer = getvect(8);
oldKey = getvect (9);
void interrupt newTimer ( )
if ((t >= 182) && (m == 0))
for (i =0; i < 4000; i ++)
charscr [i] = *(scr + i);
for (i =0; i <=4000; i +=2)
*(scr + i) = 0x20;
*(scr + i + 1) = 0x07;
t = 0; m = 1;
(*oldTimer) ( );
void interrupt newKey ( )
if (m == 1)
for (w =0; w < 4000; w ++)
*(scr + w) = charscr [w];
m = 0;
(*oldKey) ( );
yaraap k pass jo solution hy upload kasro na