+ Link For Assignments, GDBs & Online Quizzes Solution |
+ Link For Past Papers, Solved MCQs, Short Notes & More |
Problem Statement:
Write a TSR (Terminate and Stay Resident) program, by using interrupt 65H, that will print course code i.e. CS609 when 0 is pressed by the user from keyboard, course name i.e. System Programming when 1 is pressed by the user and print Virtual University of Pakistan when 2 is pressed from Keyboard.
Detailed Instructions:
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!
Tags:
+ 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)ok shakeel bro
this is not correct, because our would assignment problem run with two program one TSR program other is operator program.
plz isy run krne ka method btayen. dont know k kese run krun isy
esko DOS me run krna he?
#include
Idea Solution:
#include
#include
char st[80] ={"CS*********$"};
char st1[80] ={"Computer Science!$"};
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,®s,®s);
getch();
char st1[80];
union REGS regs;
regs.h.ah = 0x01;
regs.h.ch = 0x01;
regs.h.cl = 0x00;
int86(0x10,®s,®s);
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);
}
}
}
CS609 Assingment#01 Solution
© 2021 Created by + M.Tariq Malik.
Powered by
Promote Us | Report an Issue | Privacy Policy | Terms of Service
We have been working very hard since 2009 to facilitate in learning Read More. We can't keep up without your support. Donate.
We are user-generated contents site. All product, videos, pictures & others contents on site don't seem to be beneath our Copyrights & belong to their respected owners & freely available on public domains. We believe in Our Policy & do according to them. If Any content is offensive in your Copyrights then please email at m.tariqmalik@gmail.com Page with copyright detail & We will happy to remove it immediately.
Management: Admins ::: Moderators
Awards Badges List | Moderators Group
All Members | Featured Members | Top Reputation Members | Angels Members | Intellectual Members | Criteria for Selection
Become a Team Member | Safety Guidelines for New | Site FAQ & Rules | Safety Matters | Online Safety | Rules For Blog Post