CS609 Assignment No 3 Solution Spring 2019 | Virtual Study Solutions

Adsetra Ads

 

CS609 Assignment No 3 Spring 2019

Dear Students, Here you can read or Download CS609 - System Programming Assignment No 3 Solution of Spring 2019. The assignment is similar to the example available in Handouts Lecture 26 Page No. 208. We are here to facilitate your learning and we do not appreciate the idea of copying or replicating solutions. CS609 Assignment Solution File has been added. Previously we shared

CS609 Assignment No 3 Solution Spring 2019
CS609 Assignment No 3 Solution Spring 2019

CS609 Assignment No 3 Solution Spring 2019

You can see the Sample Preview of CS609 Assignment No 3 Solution provided by (Virtual Study Solutions) below. Click on Download Button to Download Solution File in Your PC. Please Share it with your friends. You can also like our Facebook Page or Subscribe Us below for Updates.

Spring 2019 Other Subjects Assignments

CS609 Assignment Solution:

Write a program which reads two physically addressed blocks from disk using biosdisk() function.

Solution:

#include #include FILE *fp;

unsigned char buf[1024];

unsigned char st[60];

unsigned char headno[10];

unsigned char secno[10];

unsigned char trackno[10];

void main (void) {

int i ;

for (i=0;i<1024;i++)

buf[i]=0;

gets(st);

fp=fopen(st,"wb");

printf("Head ");

gets(headno);

puts (headno);

i = biosdisk(2,0x80,atoi(headno), atoi(trackno),atoi(secno),2,buf) ;

if (*(((char *)(&i))+1)==0) {

fwrite(buf,2,1024,fp); fclose(fp);

}

else printf("Cannot Read Error# = %x",i);

}


If you find any mistakes please let us know in comments below. Thank You.

Post a Comment

 

Top