We are here with you hands in hands to facilitate your learning & don't appreciate the idea of copying or replicating solutions. Read More>>

Looking For Something at vustudents.ning.com? Click Here to Search

www.bit.ly/vucodes

+ Link For Assignments, GDBs & Online Quizzes Solution

www.bit.ly/papersvu

+ Link For Past Papers, Solved MCQs, Short Notes & More

Instructions: Please read the following instructions carefully before submitting assignment. 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 or file is corrupt.  Assignment is copied (partial or full) from any source (websites, forums, students, etc.) Note: After solving both questions, you have to upload only a single .doc or .docx file. There is no need to send .EXE file for Question 2. Write code in a Word file. Assignment in any other format (extension) will not be accepted and will be awarded with zero marks. Lectures Covered: This assignment covers Lecture # 29 to Lecture # 32. Objective: The objective of this assignment is to provide hands on experience of:  Understanding system programming concepts including BIOS Parameter Block and Drive Parameter Block.  Reading dump of main memory and extracting information from it  Reading various parameters of hard disk using interrupt 21/32H For any query about the assignment, contact at CS609@vu.edu.pk Question 1: [10 marks] Drive Parameter Block (DPB) is a data structure maintained by operating system in the main memory. The operating system translates information from BIOS Parameter Block (BPB) and stores it in DPB. Suppose we have accessed DPB through undocumented service 21/32H. The dump of the memory, having contents of DPB for a FAT12 system is given below: Read this dump file, and fill the table by calculating/finding following parameters: Sr. No. Parameter Value 1 Drive number 2 Unit number within device driver 3 Bytes per sector 4 Highest sector number within a cluster 5 Shift count to convert clusters into sectors 6 Number of reserved sectors at beginning of drive 7 Number of FATs 8 Number of root directory entries 9 Number of first sector containing user data 10 Highest cluster number Question 2: [5 marks] The following program uses interrupt 13/48H to get parameters of removable/portable disk drive. Complete the program as instructed below. [NOTE: we are using a buffer called TempBuffer for storing result]. Instructions for Question 2:  The drive you are going to access must be a removable or portable drive. (Assume that you have already inserted it in your system before running this program)  Set the size of TempBuffer to 60 bytes  Load the segment address of TempBuffer in appropriate register before invoking interrupt  Print Heads, Sectors, Cylinder, and count of Bytes per Sector from TempBuffer (after invoking interrupt) on the screen using printf() function #include #include struct TempBuffer { int size; int flags; long int cylinders; long int heads; long int sectors; long int lowCount; long int highCount; int bytesPerSector; long int configPointer; } tempbuffer; void main() { // write your code here } Best of Luck!

+ How to Join Subject Study Groups & Get Helping Material?

+ How to become Top Reputation, Angels, Intellectual, Featured Members & Moderators?

+ VU Students Reserves The Right to Delete Your Profile, If?


See Your Saved Posts Timeline

Views: 4108

.

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

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

+ Click Here to Search (Looking For something at vustudents.ning.com?)

+ Click Here To Join (Our facebook study Group)

Attachments:

Replies to This Discussion

Print Heads, Sectors, Cylinder, and count of Bytes per Sector from TempBuffer

ko print krvana hy..

ap ny sab ko print krva dya hy.

mery khial mn sirf etna ay ga.

void main()

Clrscr();

_AH=0x48

_DL=0x80;

tempbuffer.size=60;

_SI=(int) and tempbuffer;

geninterrput (0x13);

printf(“Heads= % Id

\n sectors = % Id

\nTracks/cylinder = Id

\n Bytes per sectors =% d

\n

tempbuffer.heads, tempbuffer.sectors, tempbuffer.cylinders,

tempbuffer.bytesPerSectors;

}

Sir kia ye run b ho raha hai mery pass to error a raha hai ap plz confirm kr dain taky assignment send ki ja sakye

TIme is very short sir

bro code kia notepad me type kerna hia kia???

MS word mai sir

#include<bios.h>

#include <dos.h>

struct TempBuffer

{

int size;

int flags;

long int cylinders;

long int heads;

long int sectors;

long int lowcount;

long int highcount;

int bytesPersector;

long int configpointer;

}

Tempbuffer;

void main()

{

clrscr();

_AH=0x48;

_DL=0x80;

Tempbuffer.size=60;

_SI=(int) &Tempbuffer;

geninterrupt(0x13);

printf("heads=%d\n sectors=%d\n Tracks/cylinders=%d\n Byte s per sector=%d\n Block count Low word=%d\n Block count Hi Word=%d\n",Tempbuffer.heads, Tempbuffer.sectors, Tempbuffer.cylinders,Tempbuffer.bytesPersector,Tempbuffer.lowcount,Tempbuffer.highcount,Tempbuffer.configpointer);

getch();

}

 Zubair-Jamshaid
is it correct?

yes 

RSS

Latest Activity

+¢αяєℓєѕѕ gιяℓ replied to +¢αяєℓєѕѕ gιяℓ's discussion Lets Share yOur desktOp wAllpAper.....  (•ิ‿•ิ)
1 minute ago
+¢αяєℓєѕѕ gιяℓ liked +¢αяєℓєѕѕ gιяℓ's discussion The Meaning Of Life.....
2 minutes ago
+"Certified Gangster"++ liked +¢αяєℓєѕѕ gιяℓ's discussion O Shit I am Late xD
3 minutes ago
+ M.Tariq Malik's 7 discussions were featured
3 minutes ago
+ M.Tariq Malik liked + M.Tariq Malik's discussion MGT520 International Business Lectures Power Point Slides (MGT520 PPTs)
3 minutes ago
+"Certified Gangster"++ liked +++STUDENT+++'s blog post Depression
4 minutes ago
+ M.Tariq Malik added 2 discussions to the group MGT520 International Business
5 minutes ago
+¢αяєℓєѕѕ gιяℓ replied to +¢αяєℓєѕѕ gιяℓ's discussion Apk Haal B Humeri Namaz Jis hai.....
6 minutes ago
+¢αяєℓєѕѕ gιяℓ replied to +¢αяєℓєѕѕ gιяℓ's discussion Apk Haal B Humeri Namaz Jis hai.....
7 minutes ago
+¢αяєℓєѕѕ gιяℓ liked +¢αяєℓєѕѕ gιяℓ's discussion تیرے رونے نے فرشتوں کو بھی رلا دیا
7 minutes ago
+¢αяєℓєѕѕ gιяℓ replied to +¢αяєℓєѕѕ gιяℓ's discussion تیرے رونے نے فرشتوں کو بھی رلا دیا
7 minutes ago
+¢αяєℓєѕѕ gιяℓ replied to +¢αяєℓєѕѕ gιяℓ's discussion تیرے رونے نے فرشتوں کو بھی رلا دیا
10 minutes ago
+¢αяєℓєѕѕ gιяℓ replied to +¢αяєℓєѕѕ gιяℓ's discussion تیرے رونے نے فرشتوں کو بھی رلا دیا
10 minutes ago
+ M.Tariq Malik liked + M.Tariq Malik's discussion MGT520 International Business Complete Lecture Handouts
13 minutes ago
+"Certified Gangster"++ liked + "αяsαℓ " Ќąƶµяɨ •"'s blog post چھوٹا کام
14 minutes ago
+¢αяєℓєѕѕ gιяℓ replied to +¢αяєℓєѕѕ gιяℓ's discussion Bilkul.....
15 minutes ago
+¢αяєℓєѕѕ gιяℓ replied to +¢αяєℓєѕѕ gιяℓ's discussion Bilkul.....
15 minutes ago
+¢αяєℓєѕѕ gιяℓ liked +¢αяєℓєѕѕ gιяℓ's discussion Bilkul.....
15 minutes ago
+¢αяєℓєѕѕ gιяℓ replied to +¢αяєℓєѕѕ gιяℓ's discussion مایوسی کے لمحات میں بھی اپنے رب کا شکر ادا کرتے رہیں
16 minutes ago
+¢αяєℓєѕѕ gιяℓ replied to +¢αяєℓєѕѕ gιяℓ's discussion Urdu Waqt kasay bachatie Hai xD
17 minutes ago

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

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