函数名: biosdisk
功 能: 软硬盘I/O
用 法: #include <bios.h>
int biosdisk(int cmd, int drive, int head, int track, int sector
int nsects, void *buffer);
程序例:
#include <bios.h>
#include <stdio.h>
int main(void)
{
int result;
char buffer[512];
printf("Testing to see if drive a: is ready\n");
result = biosdisk(4,0,0,0,0,1,buffer);
result &= 0x02;
(result) ? (printf("Drive A: Ready\n")) :
(printf("Drive A: Not Ready\n"));
return 0;
}