Article View: comp.os.msdos.programmer
Article #873Re: Detecting a disk in floppy drive
From: Philip Smolen
Date: Thu, 13 Aug 1992 08:26
Date: Thu, 13 Aug 1992 08:26
20 lines
960 bytes
960 bytes
In article <4672@blue.cis.pitt.edu.UUCP> demented+@pitt.edu (Scott E Berry) writes: > >How can I detect if a drive contains a disk without getting the >Abort, Retry, Ignore message. I work in a computer lab at Pitt Use int 13h to "verify" the first sector on the disk. For example: a_drive equ 0 b_drive equ 1 tries equ 3 mov si,tries verify: mov ax,0401h ; verify 1 sector mov cx,1 ; sector == 1; cylinder== 0 mov dx,a_drive ; head == 0; drive == a: int 13h jnc disk_is_in_drive dec si jnz verify no_disk_in_drive:
Technical Details
Message-ID:
<l8k767INNgf8@muleshoe.cs.utexas.edu>Path:
arc1-ca.pugleaf.net!sparky!uunet!cs.utexas.edu!newsReferences:
<4672@blue.cis.pitt.edu.UUCP>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!cs.utexas.edu!news From: phil@cs.utexas.edu (Philip Smolen) Newsgroups: comp.os.msdos.programmer Subject: Re: Detecting a disk in floppy drive Date: 13 Aug 1992 03:26:47 -0500 Organization: U Texas Dept of Computer Sciences, Austin TX Lines: 21 Message-ID: <l8k767INNgf8@muleshoe.cs.utexas.edu> References: <4672@blue.cis.pitt.edu.UUCP> NNTP-Posting-Host: muleshoe.cs.utexas.edu