#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.
Numbers and figures are an essential part of our world, necessary for almost everything we do every day. As important…
APPROVED BY CLIENTS
"assignmentexpert.com" is professional group of people in Math subjects! They did assignments in very high level of mathematical modelling in the best quality. Thanks a lot
Comments
Leave a comment