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

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!


+ Click Here To Join also Our facebook study Group.


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


See Your Saved Posts Timeline

Views: 4227

.

+ http://bit.ly/vucodes (Vu Study Groups By Subject Codes Wise)

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

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

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