15 lines
296 B
C
15 lines
296 B
C
|
#include <stdio.h>
|
||
|
#include <bios.h>
|
||
|
|
||
|
void main()
|
||
|
{
|
||
|
struct diskinfo_t di;
|
||
|
unsigned short status;
|
||
|
|
||
|
di.drive = di.head = di.track = di.sector = 0;
|
||
|
di.nsectors = 1;
|
||
|
di.buffer = NULL;
|
||
|
status = _bios_disk( _DISK_VERIFY, &di );
|
||
|
printf( "Status = 0x%4.4X\n", status );
|
||
|
}
|