www.vustudents.ning.com

We non-commercial site working hard since 2009 to facilitate learning Read More. We can't keep up without your support. Donate.

# CS609 Assignment No 01 Fall 2019 Solution & Discussion

CS609 Assignment No 01 Fall 2019 Solution & Discussion

Views: 1803

### Replies to This Discussion

Our main purpose here discussion not just Solution

Discussed & be touched with this discussion. After discussion a perfect solution will come in a result at the end.

P.S:    Please always try to add the discussion in proper format title like “CS101 Assignment / GDB No 01 Solution & Discussion Due Date: ___________”

Then copy Questions from assignment file and paste in Discussion.

http://bit.ly/vucodes (For Assignments, GDBs & Online Quizzes Solution)

http://bit.ly/papersvu (For Past Papers, Solved MCQs, Short Notes & More)

IDEA Solution of CS609 Assignment 1 (Dear student change it as per assignment)
----------------------------
#include<BIOS.H>
#include<DOS.H>

char st1[80] ={"Virtual University of Pakistan\$"};
char st2[80] ={"Washi Ali\$"};
char st2[80] ={"Tufail\$"};

void interrupt (*oldint65)( );
void interrupt newint65( );
void main()
{
oldint65 = getvect(0x65);
setvect(0x65, newint65);
keep(0, 1000);
}
void interrupt newint65( )
{
switch (_AH)
{
case 0:
_AH = 0x09;
_DX = (unsigned int) st1;
geninterrupt (0x21);
break;

case 1:
_AH = 0x09;
_DX = (unsigned int) st2;
geninterrupt (0x21);
break;

case 2:
_AH = 0x09;
_DX = (unsigned int) st3;
geninterrupt (0x21);
break;
}

}
}

FOR CS609 assigment 1 solution See handouts example on pg #26.

04 - TSR programs and Interrupts

Do we just have write the code? Or any screenshot is necassary?

u just have ti provide .doc file. word file

CS609 Assignment No 01 Fall 2019 Solution

CS609 Assignment 1 IDEA Solution of (Dear student change it as per assignment)
----------------------------
#include<BIOS.H>
#include<DOS.H>
char st1[80] ={"Virtual University of Pakistan\$"};
char st2[80] ={"Washi Ali\$"};
char st2[80] ={"Tufail\$"};
void interrupt (*oldint65)( );
void interrupt newint65( );
void main()
{
oldint65 = getvect(0x65);
setvect(0x65, newint65);
keep(0, 1000);
}
void interrupt newint65( )
{
switch (_AH)
{
case 0:
_AH = 0x09;
_DX = (unsigned int) st1;
geninterrupt (0x21);
break;
case 1:
_AH = 0x09;
_DX = (unsigned int) st2;
geninterrupt (0x21);
break;
case 2:
_AH = 0x09;
_DX = (unsigned int) st3;
geninterrupt (0x21);
break;
}
}
}

CS609 Assignment 1 IDEA Solution

CS609 Assignment 1 IDEA Solution

cs609 Assignment solution is given below:

#include<stdio.h>
#include<BIOS.H>
#include<DOS.H>
#include<conio.h>

void interrupt (*old)();
void interrupt ScrollLock();
char far *scr=(char far*) 0x00400017;

char st1[80]("Virtual University of Pakistan\$");
char st2[80]("Basit Ali\$");

void main()
{
clrscr();
_AH=0;
_DX=(unsigned int) st1;
_AH=0x09;
geninterrupt(0x21);

_AH=1;
_DX=(unsigned int) st2;
_AH=0x09;
geninterrupt(0x21);

_AH=2;
_DX=(unsigned int) st3;
_AH=0x09;
geninterrupt(0x21);

old=getvect(0x08);
setvect(0x08,ScrollLock);
keep(0,1000);

}

void interrupt ScrollLock()
{
*scr=16;
(*old)();
}

How Installing and configuring Oracle VM Virtual Box

#CS609 Assignment No 01 Fall 2019

#include<stdio.H>
#include<BIOS.H>
#include<DOS.H>
#include<conio.H>
void interrupt (*old)();
void interrupt ScrollLock();
char far *scr=(char far*)0x00400017;
char str1[80]={“Virtual University of Pakistan\$”}
char str3[80]={“Sami Ullah\$”}

void main()
{
clrscr();
_AH=0x09;
_DX=(unsigned int)st1;
geninterrupt(0x21);
_DX=(unsigned int)st2;
geninterrupt(0x21);
_DX=(unsigned int)st3;
geninterrupt(0x21);
old=getvect(0x08); // Keep vector of current INT
setvect(0x08,ScrollLock); //setting to new INT
keept(0,1000);
}
void interrupt ScrollLock()
{
*scr=16;
(*old)();
}

1

2

3

4

5

## VIP Member Badge & Others

------------------------------------

## Latest Activity

### کامیابی

1 minute ago
1 hour ago
amna updated their profile
1 hour ago
+₱ɆⱤ₣Ɇ₵₮ liked Ammara Sabir's discussion @@@@@ No cheating bchooo \$\$\$\$\$\$
1 hour ago
+₱ɆⱤ₣Ɇ₵₮ liked Mani Siddiqui's discussion Happy BirthDay Ammara Sabir
1 hour ago
Black Wolf updated their profile
2 hours ago
2 hours ago
+₱ɆⱤ₣Ɇ₵₮ liked +₱ɆⱤ₣Ɇ₵₮'s discussion HAPPIEST DAY MERI PAALI SI BEHNA
2 hours ago