#include <dos.h>

diskio()   /* this just does a fake disk access to drive a:  */
           /* it could also be modified to check disk status */
{
    union REGS in, out;

    in.x.ax = 0x040a;   /* verify, 5 sectors */
    in.x.dx = 0;        /* drive A:, head 0 */
    in.x.cx = 1;        /* track 0, sector 1 */
    int86(0x13,&in,&out);
    in.x.ax = 0x040a;   /* verify, 5 sectors */
    in.x.dx = 0;        /* drive A:, head 0 */
    in.x.cx = 0x0501;   /* track 5, sector 1 */
    int86(0x13,&in,&out);
    in.x.ax = 0x040f;   /* verify, 5 sectors */
    in.x.dx = 0;        /* drive A:, head 0 */
    in.x.cx = 0x0f01;   /* track 10, sector 1 */
    int86(0x13,&in,&out);
    in.x.ax = 0x040f;   /* verify, 5 sectors */
    in.x.dx = 0;        /* drive A:, head 0 */
    in.x.cx = 0x2301;   /* track 0, sector 1 */
    int86(0x13,&in,&out);
    in.x.ax = 0x040a;   /* verify, 5 sectors */
    in.x.dx = 0;        /* drive A:, head 0 */
    in.x.cx = 0x0501;   /* track 5, sector 1 */
    int86(0x13,&in,&out);
    in.x.ax = 0x040f;   /* verify, 5 sectors */
    in.x.dx = 0;        /* drive A:, head 0 */
    in.x.cx = 0x0f01;   /* track 10, sector 1 */
    int86(0x13,&in,&out);
    in.x.ax = 0x040f;   /* verify, 5 sectors */
    in.x.dx = 0;        /* drive A:, head 0 */
    in.x.cx = 0x2301;   /* track 0, sector 1 */
    int86(0x13,&in,&out);
    in.x.ax = 0x040a;   /* verify, 5 sectors */
    in.x.dx = 0;        /* drive A:, head 0 */
    in.x.cx = 0x0501;   /* track 5, sector 1 */
    int86(0x13,&in,&out);
}


