Lines Matching defs:drive
68 case 0x07: msg("Drive parameter activity failed"); break;
79 case 0xAA: msg("Drive not ready (hard disk only"); break;
89 Identify what kind of diskette is installed in the specified drive.
95 int nsects(int (drive))
105 biosdisk(RESET, drive, 0, 0, 0, 0, buffer);
106 status = biosdisk(READ, drive, 0, 10, 1, 1, buffer);
108 status = biosdisk(READ, drive, 0, 0, 1, 1, buffer);
111 biosdisk(RESET, drive, 0, 0, 0, 0, buffer);
112 status = biosdisk(READ, drive, 0, 0, nsect[i], 1, buffer);
114 status = biosdisk(READ, drive, 0, 0, nsect[i], 1, buffer);
128 int count, fdin, drive, head, track, status, spt, buflength, ns;
140 printf("Enter destination drive: ");
142 drive = (fname[0] - 'A') & 0xf;
144 printf("drive %c: and press -ENTER- :", drive + 'A');
152 spt = nsects(drive);
156 printf("Writing image to drive %c:. Press ^C to abort.\n", drive+'A');
165 status = biosdisk(WRITE, drive, head, track, ns, 3, pbuf);
176 biosdisk(2, drive, 0, 0, 1, 1, buffer); /* Retract head */