We have been working very hard since 2009 to facilitate in your learning Read More. We can't keep up without your support. Donate Now.

www.bit.ly/vucodes

+ Link For Assignments, GDBs & Online Quizzes Solution

www.bit.ly/papersvu

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

  • In this program, you will implement interrupt 65H which is currently not used by operating system.
  • Interrupt 65H function must check for Service Number – if service number is 0, course code will be printed and if service number is 1, full name of the course 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.
  • Course Code or course name must be printed at the beginning of monitor text memory area, 0xb8000000
  • Calculate Attribute Byte for both course code and course name according to the following criteria:
    1. Text blinking: No
    2. Background color: White
    3. Foreground color: Black
    4. Bold text: No
  • Visit this link: https://ascii.cl/ for complete ASCII table. This table is also available in the Downloads section of LMS.
  • Use keep() function to make this program TSR.
  • After writing interrupt 65H, write a test function which will take input from user (for example: Enter 0 for printing course code, 1 for printing Name of course and 2 for printing Virtual University of Pakistan), place relevant service number in AH register, and generate interrupt function. You may use switch statement for this.
  • Your assignment file should be a single Word file (.doc or .docx) containing:
    1. Complete interrupt function (both services must be implemented)
    2. Test function to generate interrupt as given in instruction # 7
  • 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!


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


Views: 4411

Attachments:

Replies to This Discussion

ok shakeel bro

#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,&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);
}
}
}

this is not correct, because our would assignment problem run with two program one TSR program other is operator program.

Uploaded the solution

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

is mei virtual university of pakistan ni print karaya.. when 2 is pressed..

CS609 Assingment#01 Solution 

Attachments:

RSS

Latest Activity

+ ! ! JS ! ! + liked Hafiza Tehreem Fatima's discussion BIRTHDAY CELEBRATION OUR BELOVED <MEMBER SARAH ABDUL
46 minutes ago
Hafiza Tehreem Fatima posted a discussion
52 minutes ago
+M.Tariq Malik replied to Fragrance of Islam's discussion ENG301 Business Communication GDB No 01 Fall 2020 Solution / Discussion in the group ENG301 Business Communication
1 hour ago
+M.Tariq Malik replied to Fragrance of Islam's discussion ENG301 Business Communication GDB No 01 Fall 2020 Solution / Discussion in the group ENG301 Business Communication
1 hour ago
+M.Tariq Malik replied to +M.Tariq Malik's discussion MTH633 Group Theory Assignment 01 Fall 2020 Solution / Discussion in the group MTH633 Group Theory
1 hour ago
+M.Tariq Malik replied to +M.Tariq Malik's discussion SOC401 Cultural Anthropology Assignment 01 Fall 2020 Solution / Discussion in the group SOC401 Cultural Anthropology
1 hour ago
+M.Tariq Malik replied to +M.Tariq Malik's discussion SOC401 Cultural Anthropology Assignment 01 Fall 2020 Solution / Discussion in the group SOC401 Cultural Anthropology
1 hour ago
+M.Tariq Malik replied to +M.Tariq Malik's discussion SOC401 Cultural Anthropology Assignment 01 Fall 2020 Solution / Discussion in the group SOC401 Cultural Anthropology
1 hour ago
+M.Tariq Malik replied to +M.Tariq Malik's discussion ECO406 Assignment 01 Fall 2020 Solution / Discussion Due Date: 04-12-2020 in the group ECO406 Mathematical Economics
1 hour ago
+M.Tariq Malik liked +M.Tariq Malik's discussion MCM520 Contemporary Mass Media Assignment 01 Fall 2020 Solution / Discussion
1 hour ago
+M.Tariq Malik added a discussion to the group MCM520 Contemporary Mass Media
1 hour ago
Profile IconMalik Ali Raza, Zohaib Anjum, Arooj Shahid and 12 more joined Virtual University of Pakistan
1 hour ago
+M.Tariq Malik replied to Fragrance of Islam's discussion ENG301 Business Communication GDB No 01 Fall 2020 Solution / Discussion in the group ENG301 Business Communication
2 hours ago
+M.Tariq Malik replied to Muhammad Azeem's discussion BNK603 Consumer Banking Assignment No 01 Solution & Discussion FALL 2020 in the group BNK603 Consumer Banking
2 hours ago
+M.Tariq Malik liked Muhammad Azeem's discussion BNK603 Consumer Banking Assignment No 01 Solution & Discussion FALL 2020
2 hours ago
+M.Tariq Malik replied to +M.Tariq Malik's discussion CS302 Assignment 01 Fall 2020 Solution / Discussion in the group CS302 Digital Logic Design
2 hours ago

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

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

.