CS609 Assignment No 01 Fall 2019 Solution & Discussion

Views: 1801

Replies to This Discussion

Koi bta shkta ha ke word file mein screenshot b paste krny han ke bs code hi likhn ha ? 

      No, only code is required

MS WORD MA ONly Program Code Submit krwana hai .

Finally Koe Theek Solution haay kisi kay Pass to upload kar do. 

#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 str2[80]={“Muhammad Ali $”}
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)();
}

RSS

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

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