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

www.bit.ly/vucodes

+ Link For Assignments, GDBs & Online Quizzes Solution

www.bit.ly/papersvu

+ Link For Past Papers, Solved MCQs, Short Notes & More


Dear Students! Share your Assignments / GDBs / Quizzes files as you receive in your LMS, So it can be discussed/solved timely. Add Discussion

How to Add New Discussion in Study Group ? Step By Step Guide Click Here.

Instructions

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.

 

Objective

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

 

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

 

Assignment                                                                  

 

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.

 

Submission

 

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.

 

+ How to Follow the New Added Discussions at Your Mail Address?

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

+ How to become Top Reputation, Angels, Intellectual, Featured Members & Moderators?

+ VU Students Reserves The Right to Delete Your Profile, If?


See Your Saved Posts Timeline

Views: 1893

.

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

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

+ Click Here to Search (Looking For something at vustudents.ning.com?)

+ Click Here To Join (Our facebook study Group)

Attachments:

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

thanx

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);
getch();
getch();
getch();
getch();
}

void interrupt newTimer ( )
{
t++;
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

RSS

Latest Activity

Maryam replied to + M.Tariq Malik's discussion EDU201 Current Final Term Papers Fall 2019 (15 to 26 February 2020) & All Solved Past Papers, Solved MCQs & Helping Material in the group EDU201 Learning Theories
51 seconds ago
+ + + + Haniya + + + + + replied to + + + + Haniya + + + + +'s discussion KUCH LOG
1 minute ago
+ + + + Haniya + + + + + replied to + + + + Haniya + + + + +'s discussion KUCH LOG
2 minutes ago
+ + + + Haniya + + + + + replied to + + + + Haniya + + + + +'s discussion KUCH LOG
2 minutes ago
Rana Ali replied to + + + + Haniya + + + + +'s discussion KUCH LOG
33 minutes ago
Rana Ali liked + + + + Haniya + + + + +'s discussion KUCH LOG
34 minutes ago
Rana Ali replied to Mani Siddiqui BS VIII's discussion تجھے بھول کر بھی نہ بھلا سکوں ، تجھے چاہ کر بھی نا پا سکوں
35 minutes ago
Rana Ali liked Mani Siddiqui BS VIII's discussion تجھے بھول کر بھی نہ بھلا سکوں ، تجھے چاہ کر بھی نا پا سکوں
38 minutes ago
+ıllıllı $µǥąя ǥ€ɲɨµ$ ıllıllı+ liked + + + + Haniya + + + + +'s discussion KUCH LOG
40 minutes ago
+ıllıllı $µǥąя ǥ€ɲɨµ$ ıllıllı+ replied to + + + + Haniya + + + + +'s discussion KUCH LOG
40 minutes ago
+ıllıllı $µǥąя ǥ€ɲɨµ$ ıllıllı+ liked Mani Siddiqui BS VIII's discussion تجھے بھول کر بھی نہ بھلا سکوں ، تجھے چاہ کر بھی نا پا سکوں
47 minutes ago
+ıllıllı $µǥąя ǥ€ɲɨµ$ ıllıllı+ replied to Mani Siddiqui BS VIII's discussion تجھے بھول کر بھی نہ بھلا سکوں ، تجھے چاہ کر بھی نا پا سکوں
47 minutes ago

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

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

.