Translate

Labels

Friday 7 June 2013

PROGRAM FOR GETTING THE DISK STATUS

#include #include #include void main(void) 

 clrscr();
 union REGS regs;
 regs.h.ah = 1; 
 regs.h.dl = 0x80;



 int86(0x13,&regs,&regs);
 printf(" If successful operation then AH & AL register resets.");
 printf(" AH register - %d",regs.h.ah); 
 printf(" AL register - %d",regs.h.al);
 printf(" Successful Operation.");
 getch();
 }


No comments: