Lines Matching refs:drive

68  * (called 'packet') or CHS mode, whether to force a drive number,
93 * %dl drive number (0x80, 0x81, ... )
103 * to store the original drive number (%dl) passed to us, and to construct a
154 .set _NXTDRV, B0_OFF+6 # Next drive
220 * If the 'setdrv' flag is set in the boot sector, use the drive
224 * or a ZIP/flash drive in floppy emulation).
227 testb $SETDRV,_FLAGS(%bp) # Set drive number?
228 #ifndef CHECK_DRIVE /* disable drive checks */
236 * Disable updates if the drive number is forced.
239 movb _SETDRV(%bp),%dl # Use stored drive number
242 * Whatever drive we decided to use, store it at (%bp). The byte
247 save_curdrive: movb %dl, (%bp) # Save drive number
249 #ifdef TEST /* test code, print internal bios drive */
251 movw $drive, %si
300 * Add one to the drive number and check it is valid.
302 * get an entry for the next drive, which is the first Hard Disk.
306 cmpb NHRDRV,%al # drive exist? (from BIOS?)
309 * If this is the only drive, don't display it as an option.
311 decw %ax # Already drive 0?
314 * If it was illegal or we cycled through them, go back to drive 0.
318 * Whatever drive we selected, make it an ascii digit and save it
320 * This digit is also part of the printed drive string, so add 0x80
324 movb %al,_NXTDRV(%bp) # drive number
325 movw $drive,%di # Display
442 * Set %dl with the drive number saved in byte 0.
455 * selected partition, and leave the drive number unchanged.
475 * If going to next drive, replace drive with selected one.
480 movb _NXTDRV(%bp),%dl # Next drive
502 * also record the drive as valid.
509 * Display the option and record the drive as valid in the options.
556 * %dl: drive, %si partition entry, %es:%bx transfer buffer.
661 * The other fields are sometimes changed before writing back to the drive
662 * Be especially careful that nxtdrv: must come after drive:, as it
665 drive: .ascii "Drive "
666 nxtdrv: .byte 0x0 # Next drive number