We are here with you hands in hands to facilitate your learning & don't appreciate the idea of copying or replicating solutions. Read More>>

Looking For Something at vustudents.ning.com? Click Here to Search


Please read the following instructions carefully before submitting assignment:

It should be clear that your assignment will not get any credit if:


  • The assignment is submitted after due date.
  • The submitted assignment does not open or file is corrupt.
  • The submitted assignment does not compile or run.
  • Solution is copied from any other source.



The objective of this assignment is to enhance your knowledge about;


  • Basic concepts of System programming.
  • Handling Interrupts
  • Working with TSR programs. 




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:

  • Your C-language program (.c file).
  • An MS Word document having screen shots of your program execution…showing your own ID displayed at random places as given on Page-2.



Hint: The desired task can easily be achieved by modifying “Timer & Keyboard Interrupt Program” given in your handouts at page # 37.


+ Click Here To Join also Our facebook study Group.

..How to Join Subject Study Groups & Get Helping Material?..

See Your Saved Posts Timeline

Views: 1854


+ http://bit.ly/vucodes (Link for Assignments, GDBs & Online Quizzes Solution)

+ http://bit.ly/papersvu (Link for Past Papers, Solved MCQs, Short Notes & More)


Replies to This Discussion

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 ...??

#include <dos.h>
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 [4000];
void main( )
oldTimer = getvect(8);
oldKey = getvect (9);
setvect (8,newTimer);
setvect (9,newKey);

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 ( )
int w;
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


Latest Activity

© 2019   Created by + M.Tariq Malik.   Powered by

Promote Us  |  Report an Issue  |  Privacy Policy  |  Terms of Service