We have been working very hard since 2009 to facilitate in your learning Read More. We can't keep up without your support. Donate Now.

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

How to Add New Discussion in Study Group ? Step By Step Guide Click Here.

disscus solution of Assignment No. 03 of System Programming-CS609 Due Date: 28/Jan/2014

Graded Assignment

Instructions:                           

Please read the following instructions carefully before submitting assignment:

 

  • You will submit your assignment before or on due date on VU-LMS.
  • Assignment should be completed by your own efforts it should not be copied from internet, handouts or books.
  • You should submit your .doc File via assignment interface at VU-LMS.
  • Assignment sent via Email will not be replied and accepted in any case.
  • If the submitted assignment does not open or file is corrupt, it will not be marked.
  • You will submit solution only in document (.doc or .docx) File.

 

Objectives:

 

To understand the use of INT 13H and its services.

 

 

For any query about the assignment, contact at cs609@vu.edu.pk

Assignment Questions

A request before solving it:

Dear Student,

This is very easy assignment which requires only the implementation of a given program. This implementation will build your understanding of BIOS interrupt 13H routine more clearly. So, do not paste your solution from any kind of source. Just do and describe what happens and how you tackle the errors if any.

 

Question:                                                                                                                               Marks 20     

Question:

Implement the program of lecture number 27 by using the BORLANDC compiler. File path of this program should be at the root directory of D partition and the file name should be LBA.txt. After the implementation of this program you take a memory dump which shows the successive operation of this program.  Also describe the values of this dump to prove the successive operation and also describes the whole processes of your implementation within few lines.

At the end of this assignment, show the data of your text file “LBA.txt” after the execution of above program.


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


Views: 13868

Attachments:

Replies to This Discussion

hira take this prog and save it then compile and run 

#include <dos.h>
#include <bios.h>
#include <stdlib.h>
#include <stdio.h>
struct DAP {
unsigned char size;
unsigned char reserved1;
unsigned char blocks;
unsigned char reserved2;
unsigned char far *buffer;
unsigned long int lbalod;
unsigned long int lbahid;
} dap;
char st[80];
unsigned char buf[512];
FILE *fptr ;
void main (void)
{
puts ("enter the lba low double word: ");
gets (st);
dap.lbalod=atol(st);
puts ("enter the lba high double word: ");
gets (st);
dap.lbahid=atol(st);
dap.size=16;
dap.reserved1=0;
dap.blocks=1;
dap.reserved2=0;
dap.buffer = (unsigned char far *)MK_FP(_DS,buf);

_AH=0x42;
_DL=0x80;
_SI=(unsigned int)&dap;
geninterrupt(0x13);
puts ("enter the path: ");
gets (st);
fptr = fopen(st,"wb");
fwrite(buf,512,1,fptr);
fclose (fptr);

}

you are about to compelet:

just write like this and press enter:

-d1234:5678

nd also make sure that u chng BOIS seeting into USB 

sumaira tell me one thing...once we set the flash as our 1st boot. then  system boot from flash then how can you interact with window as you are not in the environment window......


sumaira shabbir    does your lba.txt showing any content using flash ?

..Error nahi ja raha.....kia .karon .....Path setting bhi theek hy..C drive mai hy

@kaneez fatima

u have written (  - parenthsis before stdlib  at line no 4.

write it as #include <stdlib.h>

path is correct

May Allah Bless u  B FOR FAZAL.........u r right .Jazak Allaho khaira wa Ahsanul jaza ......

Theek ho gya .....Age btao ab kia karon

read the last pages of discussion

best of luck!

stay blessed

last page kon sa hy wo bhi bta de kiu k jab tak discussion ho rahi hy .......last page ka pta nahi kon sa ho ga????????

enter value in lba low doubl word and high double word such as 

1234

5678

B FOR FAZAl plz guide me what to do???????

RSS

Latest Activity

Profile IconFatima and MUHAMMAD NAJEEB joined +M.Tariq Malik's group
4 minutes ago
+M.Tariq Malik replied to +M.Tariq Malik's discussion MGT601 GDB No 01 Fall 2020 Solution / Discussion Last Date: 27-11-2020 in the group MGT601 SME Management
26 minutes ago
+ " Şinger " and + "ραℓωαѕнα" are now friends
26 minutes ago
+ " Şinger " replied to Pooja kumari's discussion quiz discussion
27 minutes ago
+M.Tariq Malik replied to +M.Tariq Malik's discussion EDU654 Assignment 01 Fall 2020 Solution / Discussion in the group EDU654 Addressing problems of learning through technology and pedagogy
31 minutes ago
+M.Tariq Malik replied to Imtiaz Waqar's discussion COST AND MANAGEMENT ACCOUNTING (MGT402) ASSIGNMENT NO. 01 in the group MGT402 Cost & Management Accounting
35 minutes ago
Amina Ibrahim replied to Muhammad Faizan Alam's discussion CS604 - Operating Systems Assignment NO 1 Due Date: 30-November-2020 in the group CS604 Operating Systems
36 minutes ago
madi ali replied to +M.Tariq Malik's discussion CS506 Assignment 01 Fall 2020 Solution / Discussion in the group CS506 Web Design and Development
37 minutes ago
madi ali replied to +M.Tariq Malik's discussion CS506 Assignment 01 Fall 2020 Solution / Discussion in the group CS506 Web Design and Development
39 minutes ago
madi ali replied to +M.Tariq Malik's discussion CS506 Assignment 01 Fall 2020 Solution / Discussion in the group CS506 Web Design and Development
50 minutes ago
MUHAMMAD NAJEEB liked +M.Tariq Malik's discussion CS101 Assignment 01 Fall 2020 Solution / Discussion
1 hour ago
madi ali replied to +M.Tariq Malik's discussion CS506 Assignment 01 Fall 2020 Solution / Discussion in the group CS506 Web Design and Development
1 hour ago

Looking For Something? Search Here

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

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

.