Answer to Question #44339 in Programming & Computer Science for Aucun Désir

Question #44339
#include <dos.h>
#include <bios.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);
}
using BORLANDC compiler
1_How can we specify the LBA address n show the contents of file created by this program?
2_ How can take the memory dump which shows the successive operation of this program?
3_How can describe the values of this dump to prove the successive operation.
4_ describe whole process.
0
Expert's answer

Answer in progress...

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS