Assignment No. 01
CS609 – System Programming
Total Marks: 15
Due Date: 18/11/2016
Rules for Marking:
It should be clear that your assignment will not get any credit if:
(Strict disciplinary action will be taken in this case).
Question No1 : (05 Marks)
Explain four lines the Followed code (only one lines answer per line)
Unsigned int far * scr = 0xb8000000;// Line 1
Void main () //Line 2
( *scr) = 0x7074; // Line 3
(*(src+2)) =0770; //Line 4
Question No2 : (10 Marks)
Write a TSR program that will clear all the contents of the screen and write your ( SYSTEM PROGRAMMING) anywhere on screen of the video text memory available at 0xB8000000 whenever interrupt 8 is invoked. Also, note that the fore color of SYSTEM PROGRAMMING should be white and back color should be blue.
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 email@example.com.
Deadline: Your assignment must be uploaded/submitted on or before 18th November 2016.
its so easy dear.
i have also window 10 in my laptop. Borlandc is working properly in my laptop
YAR SOLUTION HE DAY DO, WINDOW 10 KI MISTAKE HO GAE HY BUS :( MC130401216 EMAIL PLZ .
dear friend if u are online plz help me
ye error deta hai (unable to change to :borlandc ) jb me dosbox mai
command deta hu cd borlandc
ab kia karo plz
use dosbox Khawaja Muhammad Bilal Kashmiri follow above tutorial
DOSBOX INSTAL HY KESAY KEROUN WO AGAY JATA HE NAHI UNABLE TO BIN ERROR A JATA HY .
zain bahi 1st question to Explain four lines han ya kasy .c file may send ho gi vu ne to .c file mangi ha
unsigned int far *scr=0xb8000001; // define screen color
(*scr)=1x0145; // 56 hexa code show the V
(*(scr+1))=0x0155;// 55 hexa code show the U
This example will generate the output VU
The far pointer scr is assigned the value 0xb800H in the high word which is the segment
address and value 0x0000H in the low word which is the offset address. The word at this
address is loaded with the value 0x0756H and the next word is loaded by the value
0x7055H, 0x07 is the attribute byte meaning black back color and white fore color and
the byte 0x70h means white back color and black fore color. ).0x56 and 0x55 are the
ASCII value of “V” and “U” respectively
BAHI JAN YA TO Explain HO GA IST BUT ISS KO .C KASY SEND KERY GAYE 2 TO .C BAN JAYE GI