C Codes
Beginners
C on Unix
Code Snippets
Data Structures
File Operations
Games Graphics
Gnu-Linux
Hardware
Mathematics
Miscellaneous
Small Programs
Sorting
C > Hardware Interaction Through C sample source codes
Program for getting the disk status
Program for getting the disk status #include<stdio.h> #include<conio.h> #include<dos.h> void main(void) { clrscr(); union REGS regs; regs.h.ah = 1; regs.h.dl = 0x80; int86(0x13,®s,®s); 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(); }
Privacy Policy
|
Link to Us
|
Links