Latest Activity In Study Groups

Join Your Study Groups

VU Past Papers, MCQs and More

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

Assignment No. 01 Semester: Spring 2016 CS609 – System Programming Due Date: 12/05/2016


Views: 6965

Attachments:

Replies to This Discussion

i also need idea solution hai to please share

#include
#include
void interrupt (*old)();
void interrupt cls();
unsigned char far *scr = (unsigned char far*)0xb8000680;
unsigned char far *src = (unsigned char far*)0xb8000000;
unsigned char far *sch = (unsigned char far*)0x00400017;
int i;

//void cls(){
void interrupt cls(){
// clrscr()
for(i=0; i<2000; i++)
{ *src = 0x20;
*(src+1) = 0x07;
src = src + 2;
}
} void charPrint()
{ geninterrupt(0x65);
*scr = 0x6D;
*(scr+1) = 0x70;
*(scr+2) = 0x63;
*(scr+3) = 0x07;
//first four lines prints mc at the center of graphix memory
//Now get the hex values of your roll No and name and set the pointers as
// *(scr+4) --> low bytes take the character and *(scr+5) high byte takes the color

*(scr+4) = 0x31;
*(scr+5) = 0x07;
*(scr+6) = 0x34;
*(scr+7) = 0x07;
*(scr+8) = 0x30;
*(scr+9) = 0x07;
*(scr+10) = 0x34;
*(scr+11) = 0x07;
*(scr+12) = 0x30;
*(scr+13) = 0x07;
*(scr+14) = 0x32;
*(scr+15) = 0x07;
*(scr+16) = 0x32;
*(scr+17) = 0x07;
*(scr+18) = 0x39;
*(scr+19) = 0x07;
*(scr+20) = 0x37;
*(scr+159) = 0x07;
*(scr+160) = 0x53;
*(scr+161) = 0x07;
*(scr+162) = 0x61;
*(scr+163) = 0x07;
*(scr+164) = 0x6C;
*(scr+165) = 0x07;
*(scr+166) = 0x6D;
*(scr+167) = 0x07;
*(scr+168) = 0x61;
*(scr+169) = 0x07;
*(scr+170) = 0x6E;
*(scr+171) = 0x07;
*(scr+172) = 0x20;
*(scr+173) = 0x07;
*(scr+174) = 0x48;
*(scr+175) = 0x07;
*(scr+176) = 0x61;
*(scr+177) = 0x07;
*(scr+178) = 0x69;
*(scr+179) = 0x07;
*(scr+180) = 0x64;
*(scr+181) = 0x07;
*(scr+182) = 0x65;
*(scr+183) = 0x07;
*(scr+184) = 0x72;

}
void main(){
//Cls
old = getvect(0x65);
setvect(0x65,cls);
//Function
charPrint();
getch();
//Interupt
getch();
}

Its only For Displaying name at center of memory .....


You only Have to install DOSBOX(TURBO C++ ) just because the only operating system supported app. as it only runs on 16bits..
after then write HEX code of your roll No. Name's each character from this site http://www.asciitable.com

mjhy ni smjh a rae ye kesy ho g :(

ye code turbo c++ mei likhna hy????plz jaldi bta dein

Yes ..
the link given below.....

i can't run my code because of this error can u help me???????

Attachments:

charPrint()
try using this... print starts from upper P.

ap ny #include k samny to kuch type nahi kiya  mere pass  jo coding hai wo run nahi ho rha unabe to open in #include<iostream.h> pease can you hep me out

DOS.H FILE ERROR

Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.

C:\Documents and Settings\hwuser>CD..

C:\Documents and Settings>CD..

C:\>D:

D:\>CD BORLANDC

D:\BORLANDC>CD BORLANDC

D:\BORLANDC\BORLANDC>CD BIN

D:\BORLANDC\BORLANDC\BIN>bcc -eTSRCAPS.COM -ID:\BORLANDC\INCLUDE -LD:\BORLAND\LI
B TSRCAPS.C
Borland C++  Version 3.1 Copyright (c) 1992 Borland International
tsrcaps.c:
Error tsrcaps.c 1: Unable to open include file 'dos.h'
Warning tsrcaps.c 18: Call to function 'geninterrupt' with no prototype in funct
ion charPrint
Warning tsrcaps.c 74: Call to function 'getvect' with no prototype in function m
ain
Warning tsrcaps.c 74: Nonportable pointer conversion in function main
Warning tsrcaps.c 75: Call to function 'setvect' with no prototype in function m
ain
Warning tsrcaps.c 77: Call to function 'charPrint' with no prototype in function
 main
Warning tsrcaps.c 78: Call to function 'getch' with no prototype in function mai
n
Warning tsrcaps.c 80: Call to function 'getch' with no prototype in function mai
n
*** 1 errors in Compile ***

        Available memory 4224340

D:\BORLANDC\BORLANDC\BIN>

any one help me ku ne open ho ri doc.h file

koi to bta do Allah k bando kesy solve krni ha.....

aoa students...

when I run my code in borlandc softwre then two errors occure:

1. unable to open include file 'dos.h'.

2. unable to open include file 'bios.h' . 

plzzz guide me.

RSS

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

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