Uploading instructions:
• Your assignment must be in .c format. (Any other formats like scan images, Word, PDF, Zip, rar, bmp, etc will not be accepted).
• Save your assignment with your ID (e.g. bc000000000.c).
• No assignment will be accepted through email.
Rules for Marking:
It should be clear that your assignment will not get any credit if:
• The assignment is submitted after due date.
• The submitted assignment does not open, execute or file is corrupted.
• Your assignment is copied from internet, handouts or from any other student
(Strict disciplinary action will be taken in this case).
Assignment
Question: (15 Marks)
Write a TSR program in C that will clear all the contents of the screen and print your VU ID and Name (BC0000000-Name) at the center of the video text memory available at 0xB8000000 whenever Alt+Ctrl+D combination is pressed from keyboard. Note that you have to take the backup of the contents of video text memory before clearing the screen. And, whenever Alt+Ctrl+R combination is pressed from the keyboard, all the contents of video text memory should be restored.
NOTE: If you are feeling any difficulty while making your program a TSR program then it is recommended to view the “How_to_generate_COM_file_and_Execute_TSR_Program.ppt” file available at download section of CS609. Do not put any query on MDB about this assignment, if you have any query then email at cs609@vu.edu.pk.
Tags:
In BORLANDC editor, first click on Options and then click on Directories. Now, check whether correct directories are mentioned or not. If your BORLANDC folder is available in D directory then include directory should be:
D:\BORLANDC\INCLUDE
And, Library directory should be:
D:\BORLANDC\LIB
g students kn sa software download krna he es asgnmnt ke lie .plz bta de
mujhay code de dain plz
ulain.qamar2@gmail.com
mujhay code de dain plz
ulain.qamar2@gmail.com
mujay plz complete kar dein hexa code likh k
Assignment No. 01 CS609 – System Programming
|
Total Marks: 15
Due Date: 12/05/2016 |
#include<BIOS.H>
#include<DOS.H>
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 interrupt cls(){
for(i=0; i<2000; i++)
{ *src = 0x20;
*(src+1) = 0x07;
src = src + 2;
}
} void charPrint()
{ geninterrupt(0x65);
*scr = 0x4D;
*(scr+1) = 0x07;
*(scr+2) = 0x43;
*(scr+3) = 0x07;
*(scr+4) = 0x--;
*(scr+5) = 0x07;
*(scr+6) = 0x--;
*(scr+7) = 0x07;
*(scr+8) = 0x--;
*(scr+9) = 0x07;
*(scr+10) = 0x--;
*(scr+11) = 0x07;
*(scr+12) = 0x--;
*(scr+13) = 0x07;
*(scr+14) = 0x--;
*(scr+15) = 0x07;
*(scr+16) = 0x--;
*(scr+17) = 0x07;
*(scr+18) = 0x--;
*(scr+19) = 0x07;
*(scr+20) = 0x--;
*(scr+21) = 0x07;
*(scr+22) = 0x--;
*(scr+23) = 0x07;
*(scr+24) = 0x--;
*(scr+25) = 0x07;
*(scr+26) = 0x--;
*(scr+27) = 0x07;
*(scr+28) = 0x--;
*(scr+29) = 0x07;
*(scr+30) = 0x--;
*(scr+31) = 0x07;
*(scr+32) = 0x--;
*(scr+33) = 0x07;
*(scr+34) = 0x--;
*(scr+35) = 0x07;
*(scr+36) = 0x--;
*(scr+37) = 0x07;
*(scr+38) = 0x--;
*(scr+39) = 0x07;
*(scr+40) = 0x--;
*(scr+41) = 0x07;
*(scr+42) = 0x--;
*(scr+43) = 0x07;
*(scr+44) = 0x--;
*(scr+45) = 0x07;
*(scr+46) = 0x--;
*(scr+47) = 0x07;
}
void main(){
old = getvect(0x65);
setvect(0x65,cls);
charPrint();
getch();
getch();
}
Janaha par -- hai wohan apna id or name ka hexa code likh dain.
Brother id or name ka hexacode kese likhen..wo b bata den
ksi bani he . code send kra he ese hi kia ?/
Dear Fellows,
All of you are requested, Please post Only One Discussion for Current Assignment/GDB/Online Quiz and everyone reply/share/discussed his/her data on that same discussion, so that all members get solution & discuss easily on Current Assignment/GDB/Online Quiz.
So please don’t post two or more discussions for one Current Assignment/GDB/Online Quiz, hope you’ll understand and cooperate with us.
© 2021 Created by + M.Tariq Malik.
Powered by
Promote Us | Report an Issue | Privacy Policy | Terms of Service
We are user-generated contents site. All product, videos, pictures & others contents on site don't seem to be beneath our Copyrights & belong to their respected owners & freely available on public domains. We believe in Our Policy & do according to them. If Any content is offensive in your Copyrights then please email at m.tariqmalik@gmail.com with copyright detail & We will happy to remove it immediately.
Management: Admins ::: Moderators
Awards Badges List | Moderators Group
All Members | Featured Members | Top Reputation Members | Angels Members | Intellectual Members | Criteria for Selection
Become a Team Member | Safety Guidelines for New | Site FAQ & Rules | Safety Matters | Online Safety | Rules For Blog Post