Share:
Notifications
Clear all

[Solved] CS609 Assignment 3 Spring 2020  

  RSS

admin
(@admin)
Admin
Joined: 2 years ago
Posts: 3608
28/07/2020 11:05 pm  

CS609 System Programming Assignment 3 Solution & Discussion Spring 2020


CS609 Assignment 3 Solution idea:

 

#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[50];

unsigned char buff[256];

FILE *fptr;




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.blocks1;

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,256,1,fptr);

fclose(fptr);

}

How is this website, please share your feedback through this link: https://forms.gle/mZ5rsd995RxU2gEZ7
---------------------
WhatsApp Groups Subject wise #QueryVU
Join Now


Quote
Share: