Here's my disfunctional code:
; Check floppy drive for disk. Conditional Jump back to L1 if there is.
L1:
MOV AH,01h
INT 13h
CMP AL,80H
JNE L1
01h is supposedly "get diskette status", but I never see my drive light
go on.
I've also tried to use 4407h, where 07 function is "whether drive is ready
for output" test.
Can someone help me here?
Thanks in advance.
- Matt W.
--------------------------[ Join me on the Web ]-------------------------------
"Silly Me..." <mtwo...@mailbox.syr.edu> | "If the future's looking dark
Computer Science at Syracuse University | We're the ones who have to shine
Kappa Delta Rho - Mu Beta chapter | If there's no one in control
#include <std-disclaimer.h> | We're the ones who draw the line"
PGP-key not yet available.... | - Neil Peart
----------------------[http://web.syr.edu/~mtwoodwa]---------------------------
Various methods are possible. My favorite is to hook INT 24h (to prevent
Abort, Retry, Fail) and then use DOS INT 21h .AH=36h. If it returns
AX=0FFFFh, then there's a problem -- most likely, no disk in the drive.
Matt-
I don't know if this is too obious, but my docs say you must
specify the drive in question in DL, where 00-7Fh are floppy
drives and 80-FFh are fixed disks. You might also want to
check for error return of: 06h - floppy disk removed.
I hope this helps.
Jim Neil
jim-...@digital.net