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

Assignment No. 01

Semester: Spring 2018

CS609: System Programming

Total Marks: 20


Due Date:

May 10, 2018




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.

§  You have not followed steps described in Detailed Instructions of the problem statement.

§  Assignment is copied (partial or full) from any source (websites, forums, students, etc.) Strict action will be taken in this regard.


Note: You have to upload only .doc or .docx file. Assignment in any other format (extension) will not be accepted and will be awarded with zero marks.




The objective of this assignment is to provide hands-on experience of System Programming concepts including:


·         Interrupts

·         Generating interrupts

·         Writing our own interrupt functions

·         Making a Terminate and Stay Resident (TSR) program

·         Accessing monitor text memory area

·         Taking input from user and invoking relevant interrupt functions


Lectures Covered:


This assignment covers lecture # 1 to lecture # 6





For any assignment related query, contact at CS609@vu.edu.pk



Problem Statement:


Write a TSR (Terminate and Stay Resident) program, by using interrupt 65H, that will print Student ID when 0 is pressed by the user, and full Name when 1 is pressed by the user.


Detailed Instructions:

1)      In this program, you will implement interrupt 65H which is currently not used by operating system.

2)      Interrupt 65H function must check for Service Number – if service number is 0, your Student ID will be printed and if service number is 1, your full Name will be displayed. In order to implement this, place service number in AH register. Interrupt 65H will check its value and will perform relevant function.

3)      Student ID or full Name must be printed at the beginning of monitor text memory area, 0xb8000000

4)      Calculate Attribute Byte for both Student ID and Name according to the following criteria:

a.       Text blinking: No

b.      Background color: White

c.       Foreground color: Black

d.      Bold text: No

5)      Visit this link: https://ascii.cl/ for complete ASCII table. This table is also available in the Downloads section of LMS.

6)      Use keep() function to make this program TSR.

7)      After writing interrupt 65H, write a test function which will take input from user (for example: Enter 0 for printing Student ID and 1 for printing Name), place relevant service number in AH register, and generate interrupt function. You may use switch statement for this.

8)      Your assignment file should be a single Word file (.doc or .docx) containing:

a.       Complete interrupt function (both services must be implemented)

b.      Test function to generate interrupt as given in instruction # 7

9)      You can use Consolas font for enhancing readability of the code in Word file.


You should NOT use interrupt 21/09H to display Student ID or Name. It must be displayed only by accessing monitor text memory area.

Best of Luck!


+ Click Here To Join also Our facebook study Group.

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

See Your Saved Posts Timeline

Views: 7497


+ 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

oe to bolo kuch to bolo 

i dont want to get zero 

Please help about this assignment

plz upload solution

plz discuss this assignment .please tell me that the program in the assignment is either write in the MS word or in windows 98.



Assalam o alaikum Miss, i didn't have vm plyer or windows 98 can you please make an assignment for me, it will be appreciated.

my vu id is MC160200773

Waqas Ahmad

My Email id is: 


Thank You!

koi video tutorial mil jaye ga.........:( is traha nahi smaj a rha

bilkul shi bola ap n brother

iqrar solution mila app k :(

handouts s kia h compile ni ho ra.gcc bi kia install cmd p run ni ho ra mere s.

ap kr skte to m jo sol nikala wo send kr deti check it

ker day send dk_052@yahoo.com

same handouts wala h bsss name id change ki m n


Latest Activity

+ M.Tariq Malik liked Nauman Abrar's discussion Koi Senior Banda?
4 minutes ago
+ "αяsαℓ " Ќąƶµяɨ •" replied to Nauman Abrar's discussion Koi Senior Banda?
7 minutes ago
Nauman Abrar posted a discussion
14 minutes ago
Profile IconZahid, maida, Mr Khan and 3 more joined Virtual University of Pakistan
49 minutes ago
+.Ãŋɠɜʆḁ.+ replied to +.Ãŋɠɜʆḁ.+'s discussion mcm301 GDB in the group MCM301 Communication skills
1 hour ago
++"STrAnGeR"++ and Mehak are now friends
1 hour ago
+!"❀mσσn❀ "ꌗ" liked + !♛BLaiRe ♛!+'s blog post کشمیر کا نوحہ
1 hour ago
+!"❀mσσn❀ "ꌗ" liked Student's blog post No Title
1 hour ago

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

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