Latest Activity In Study Groups

Join Your Study Groups

VU Past Papers, MCQs and More

We non-commercial site working hard since 2009 to facilitate learning Read More. We can't keep up without your support. Donate.


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.


Views: 1964


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


Looking For Something? Search Below

Latest Activity

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

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