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

www.vustudents.ning.com

 www.bit.ly/vucodes + Link For Assignments, GDBs & Online Quizzes Solution www.bit.ly/papersvu + Link For Past Papers, Solved MCQs, Short Notes & More

Dear Students! Share your Assignments / GDBs / Quizzes files as you receive in your LMS, So it can be discussed/solved timely. Add Discussion

# cs609 assignment no.2 solution

#include <dos.h>

#include <bios.h>

char st[100];

unsigned long int temp;

unsigned int i;

unsigned int count=100;

void main (void)

{

temp=(unsigned long int)_DS;

temp = temp 4L;

i = *((unsigned int *)(&temp));

temp = temp>>16L;

outportb (0x83,*((unsigned char *)(&temp)));

outportb(0x02,*(((unsigned char *)(&i))));

outportb(0x02,*(((unsigned char *)(&i))+1));

count--;

outportb(0x03,*((unsigned char *)(&count)));

outportb(0x03,*(((unsigned char*)(&count))+1));

outportb(0x0b,0x49);

outportb(0x08,0);

outport(0x0a,1);

getch();

}

The required function is given below:

if(BPB_FATSz16 != 0)

FATSz = BPB_FATSz16;

else

FATSz = BPB_FATSz32;

if(BPB_TotSec16 != 0)

TotSec = BPB_TotSec16;

else

TotSec = BPB_TotSec32;

DataSec = TotSec – (BPB_ResvdSecCnt + (BPB_NumFATs * FATSz) + RootDirSectors);

CountofClusters = DataSec / BPB_SecPerClus;

if(CountofClusters < 4085)

/* Volume is FAT12 */

else if(CountofClusters < 65525)

/* Volume is FAT16 */

else

/* Volume is FAT32 */

+ 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?

Views: 293

.

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

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

### Replies to This Discussion

ye thk h 2nd wala

is this correct

## Latest Activity

ArHum updated their profile
21 minutes ago

### FB_IMG_1576159638848

31 minutes ago
Ateeqa updated their profile
41 minutes ago
UMER UMER posted a photo

### FB_IMG_1576159638848

1 hour ago
2 hours ago
3 hours ago
Rida Jaffery is now friends with Elegant and Hafiz Furqan Sabir
4 hours ago
zisani joined + M.Tariq Malik's group

### CS504 Software Engineering - I

6 hours ago
zisani joined + M.Tariq Malik's group

6 hours ago
6 hours ago
+ ! ! ! ❣ AaiMa ❣ !+ updated their profile
7 hours ago
Rida Jaffery joined + M.Tariq Malik's group

7 hours ago

1

2

3