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

CS609 System Programming Assignment No 01 Solution & Discussion Spring 2019 Due Date: 13-05-2019

CS609 System Programming Assignment No 01 Solution & Discussion Spring 2019 Due Date: 13-05-2019

  Problem Statement:You are required to writ C program using interrupt 65H to print your own Student ID, Name or your Study Program depending upon the number input i.e 1,2,3 respectively. When the user enters 1 it will print your own Student ID, if 2 then print your own Name and finally, if the user enters 3, it will print your Study Program.Instructions:Declare 3 character strings st1,st2,st3 having Student ID, Name and Study Program You should save interrupt 65H vector in a pointer to vector variable name oldint65 through getvect instruction. Call any new function i.e newint65( ) through setvect instruction.Through printf instruction, show message “What you want to print: Press 1,2,3= ” i.eprintf(“What you want to print: Press 1,2,3= ”);Then use scanf to take input input in an integer variable i.e scanf(“%d”, &i)In this program, you will implement interrupt 65H which is currently not used by operating system.Place service number in AH register. Interrupt 65H will check its value and will perform relevant function.Interrupt 65H function must check for Service Number using Switch Statement. In Case of Service Number 1, it should print Student ID i.e BC123456 and in case of Service Number is 2, it should print your own full name i.e Ali Ahmad. Similarly your study program i.e BS/MCS etc should be printed in case of number 3.Use keep() function to make this program TSR.
Note: Your assignment solution will be in this Word file (.doc or .docx) containing code of C only as given in sample solution:
Best of Luck!


Sample Solution://Header Files#include<stdio.H>#include<BIOS.H>#include<DOS.H>#include<conio.H>void interrupt (*oldint 65)(); //To store current interruptchar str1[80]={“BC123456$”}  // Write your own particularschar str2[80]={“Ali Ahmad$”}char str3[80]={“Degree Program:  BS$”}int i;void interrupt newint65(void);  //NewInt prototypevoid main(){// Keep vector of current INT//setting to newint65 clrscr();printf(“What you want to print: Press 1,2,3=>”);scanf(“%d”,&i);_AH=i;getch();}void interrupt newint65(){ switch(i){  case 1:           //Service Number  // Register for output.  break; } case 2:      break; } case 3:      break; } default:  {  }}  

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

.

+ 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

ye to compile he nhi ho raha.errors a rhy

dear fcntl.h kis lye use kia

Kaleem Ullah Khan

is main int i declaration ka error deta hy

int i declaration ka error ata hy any help please

A.o.A kaleem Ullah khan bhai id kis jagah kis deni plz btana

#include<stdio.h>
#include<fcntl.h>
#include<io.h>
#include<DOS.h>
void interrupt *newint65(void);
int a = {"my id "};
void interrupt newint65(void);
printf("press 0 for student Id ",y)
unsigned char far *scr=(unsigned char far*)0xb8000000;
//corrected
void main()
{
int i; //instruction added
for (i=0;i<2000;i++) //corrected
{
*scr=0x20; //corrected
*(scr+1)=0x07; //corrected
scr=scr+2;
}
}
void main()
{
oldint65 = getvect(0x65);
setvect(0x65, newint65);
geninterrupt (0x65);
geninterrupt (0x65);
geninterrupt (0x65);
setvect(0x65, oldint65);
}
void interrupt(*newint65)( )
{
_AH = 0x09;
_DX=(unsigned int)st;
geninterrupt (0x21);
}

CS609-Assignment-no-01-Solution-Spring-2019

Attachments:

tariq bhai is ma apni id deni agar deni kis jagah per deni  name study program bi lkhna hai ye kis jagah likhna ye same jo ap ne send kiya woi likhna

Share below link with friends for solution & Discussion.

http://bit.ly/vucodes

#include<stdio.h>#include<stdio.h>#include<BIOS.H>#include<DOS.H>#include<conio.h>
void interrupt (*oldint65)();void interrupt newint65(void);
char str1[80] = {"Your VU ID"};char str2[80] = {"Your Name"};char str3[80] = {"Your Degree Program"};
int i;
void main(){
oldint65 = getvect(0x65);
setvect(0x65, newint65);
clrscr();

printf("What you want to print: Press 1,2,3=>");

scanf("%d",&i);

_AH=i; geninterrupt(0x65); getch();
}
void interrupt newint65(){ switch(i) { case 1: printf("s%",i); geninterrupt(0x21); break; case 2: printf("s%",i); geninterrupt(0x21); break; case 3: printf("s%",i); geninterrupt(0x21); break; default: printf("Enter Valid Number"); break;
}}

hi guys i provide this  first assignment solution will be soon

Where

RSS

Latest Activity

+ M.Tariq Malik replied to + M.Tariq Malik's discussion MTH101 Calculus And Analytical Geometry Online Quiz No 01 Fall 2019 Solution Discussion in the group MTH101 Calculus And Analytical Geometry
42 seconds ago
+ M.Tariq Malik liked + M.Tariq Malik's discussion MTH101 Calculus And Analytical Geometry Online Quiz No 01 Fall 2019 Solution Discussion
45 seconds ago
+ M.Tariq Malik added a discussion to the group MTH101 Calculus And Analytical Geometry
2 minutes ago
+ M.Tariq Malik replied to + M.Tariq Malik's discussion CS401 Assignment No 01 Fall 2019 Solution & Discussion in the group CS401 Computer Architecture and Assembly Language Programming
7 minutes ago
+ M.Tariq Malik replied to مخلص's discussion Oppo Reno Ace. Tip Toward Balance.
10 minutes ago
Areeha Chuhdary liked + ! ! ! ! ! ! ! Ayesha +++'s blog post some suggestions of Hazrat Muhammad (PBUH)
11 minutes ago
+ M.Tariq Malik liked مخلص's discussion Oppo Reno Ace. Tip Toward Balance.
13 minutes ago
Bareera Khan updated their profile
13 minutes ago
+ M.Tariq Malik replied to + M.Tariq Malik's discussion ISL201 Islamic Studies Assignment No 01 Fall 2019 Solution & Discussion in the group ISL201 Islamic Studies
13 minutes ago
+ M.Tariq Malik liked + M.Tariq Malik's discussion ISL201 Islamic Studies Assignment No 01 Fall 2019 Solution & Discussion
13 minutes ago
+ M.Tariq Malik added 2 discussions to the group ISL201 Islamic Studies
14 minutes ago
Areeha Chuhdary liked + "J ɨ y ą ⋆'s discussion Hona chahy tha.......
15 minutes ago
Profile IconMeera Shah and MUHAMMAD KASHIF joined + M.Tariq Malik's group
16 minutes ago
مخلص posted a discussion
22 minutes ago
+ M.Tariq Malik liked + M.Tariq Malik's discussion Latest Scientifically Formula To Success
25 minutes ago
+ M.Tariq Malik posted discussions
29 minutes ago
+ M.Tariq Malik replied to + M.Tariq Malik's discussion MTH202 Discrete Mathematics Assignment No 01 Fall 2019 Solution & Discussion in the group MTH202 Discrete Mathematics
35 minutes ago
♦_"Tooba"_♦ liked Sana Sunny ツ's discussion ~~~,,,Sana Sunny Poetry,,,~~~
36 minutes ago
+ M.Tariq Malik replied to + M.Tariq Malik's discussion MTH202 Discrete Mathematics Assignment No 01 Fall 2019 Solution & Discussion in the group MTH202 Discrete Mathematics
36 minutes ago
♦_"Tooba"_♦ liked + M.Tariq Malik's profile
37 minutes ago

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

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