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

Assignment No. 01

Graded
Semester: Spring 2018

CS609: System Programming

Total Marks: 20

 

Due Date:

May 10, 2018

 

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.

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

 

Objectives:

 

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.

Note:

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!

 

+ 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: 7531

.

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

Replies to This Discussion

Don't know better solution atm, but you can print your id character by character like

*scr=0x704D
*(scr+1) = 0x7043

*(scr+2)=0x7016

and so on

1st smstr sy 609 k charchy suny thy ab pta b lg gya...... koi kindly cmplt solution ki video e bna dey.

Solution:

#include
#include
char st[80] ={"MS*********$"};
char st1[80] ={"AMIR LIAQAT!$"};
unsigned int far *scr=0xb8000000;
void interrupt (*oldint65)( );
void interrupt newint65( );
void main()
{

oldint65 = getvect(0x65);
setvect(0x65, newint65);
keep(0, 1000);

char st[80];
union REGS regs;
regs.h.ah = 0x01;
regs.h.ch = 0x01;
regs.h.cl = 0x00;
int86(0x10,&regs,&regs);
getch();

char st1[80];
union REGS regs;
regs.h.ah = 0x01;
regs.h.ch = 0x01;
regs.h.cl = 0x00;
int86(0x10,&regs,&regs);
getch();

}
void interrupt newint65( )
{
if (( _AH ) == 0)
{
_AH = 0x09;
_DX = (unsigned int) st;
geninterrupt (0x65);
}
else
{
if (( _AH ) == 1)
{
_AH = 0x09;
_DX = (unsigned int) st1;
geninterrupt (0x65);
}
}
}

Maine yehi copy paste lar name chage kar k submit karwa di 

konsi copy ki he muje send kr dein plz myeri gmail id he Arsalmalik335@gmail.com

Where did you use Keep Function and switch statement ?

You do not need to run this program. It should be in word format.

hm na pagal ho jana he plz koi smjha day ka sal me kia karna is subject  ki hme zara bhi smjh nahi ati apni id ka sath kasy karna ha plzzz

plz koi bta dy k hm apna ID n Name ko ASCII code m kesy change kren??

even the single requirement of assignment is not follow. .. thanks god i have not copy paste from this..

RSS

Latest Activity

Aakash Ahmed replied to +¢αяєℓєѕѕ gιяℓ's discussion CS408 - Human Computer Interaction Assignment No.1 Semester: Fall 2019 in the group CS408 Human Computer Interaction
13 minutes ago
Profile IconAakash Ahmed and Preçîõûš joined + M.Tariq Malik's group
13 minutes ago
+ Abb@s replied to + !! SARAH's discussion mne hassan ko mne kbhi nhi manga dua me ,..<3 love love hassan to azal se mera he na..!!
23 minutes ago
+ Abb@s replied to + !! SARAH's discussion mne hassan ko mne kbhi nhi manga dua me ,..<3 love love hassan to azal se mera he na..!!
24 minutes ago
Maham Rafiq and Muhammad Hussnain Hafeez are now friends
30 minutes ago
roshan khetran liked + M.Tariq Malik's group ISL201 Islamic Studies
34 minutes ago
Bilal Chaudhary replied to + M.Tariq Malik's discussion CS603 Assignment No 01 Fall 2019 Solution & Discussion Due Date: 11-11-2019 in the group CS603 Software Architecture and Design
38 minutes ago
Bilal Chaudhary joined + M.Tariq Malik's group
38 minutes ago
pakeeza fatima liked + M.Tariq Malik's discussion MGT101 Assignment No 01 Fall 2019 Solution & Discussion Due Date: 13-11-2019
59 minutes ago
+ "αяsαℓ " Ќąƶµяɨ •" replied to + M.Tariq Malik's discussion MGT301 Principles of Marketing Assignment No 01 Fall 2019 Solution & Discussion in the group MGT301 Principles of Marketing
1 hour ago
omer asif liked + M.Tariq Malik's discussion ACC501 Online Quiz No 01 Fall 2019 Solution Discussion
1 hour ago
+ M.Tariq Malik replied to + "AS"'s discussion Koi Parwah Nahi ..
1 hour ago
+ M.Tariq Malik replied to + "AS"'s discussion Koi Parwah Nahi ..
1 hour ago
Mani Siddiqui BS VIII posted a status
"2 mobil hony ka bi faida hai subha utha ek say. Dosra py. Msg karta ho. Kasy ho. Jano mary baby na nashta kya...."
1 hour ago
Profile IconPsychology student and Sameera anwer joined + M.Tariq Malik's group
1 hour ago
ikram ullah replied to + M.Tariq Malik's discussion MGT301 Principles of Marketing Assignment No 01 Fall 2019 Solution & Discussion in the group MGT301 Principles of Marketing
1 hour ago
Profile Iconikram ullah, rabia and 2 other members joined + M.Tariq Malik's group
1 hour ago
Mani Siddiqui BS VIII posted a status
2 hours ago
+ "Jɨyą replied to + "Jɨyą's discussion meliiiiiiii dailyyyyyyyyyyyyyyyyy milkkkkkkkkkkkkkkkkk :(
3 hours ago
Ayaat replied to + M.Tariq Malik's discussion MGT301 Principles of Marketing Assignment No 01 Fall 2019 Solution & Discussion in the group MGT301 Principles of Marketing
3 hours ago

Today Top Members 

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

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