Tom's Guide | Tom's Hardware | Tom's Games
![]() |
![]() |
![]() |
hello,
does anyone know how can I detect floppy drive without using _bios_disk function.
Problem is that I have a laptop with sawpable
drives(floppy or cdrom)if i send _bios_disk command it always returning that unit has floppy drive although I know that i have taken the modular floppy drive out of this unit.some how internal bios know that it doesnot have floppy drive because if I go into system setting by hitting F10 the floppy option is greyed out.
HELP HELP
its a Compaq ARMADA notebook. some one told me to look at CMOS specs at www.dmtf.com. I have found from that document what bit it is in CMOS which detects floppy but don't know how to check CMOS settings from C program.
is there another way to detect floppy drive not floppy disk.

use int 11 for equipment chk or look in the bios data area 40:10, for the two bytes that contain info on the hardware installed.
00000000|110000000 - define the number of disk drives installedor
chk if drive:\null exists if it does then the drive is there

Thank you for replying to my request.
U have mention that i should check for a:\NULL but at this point in my career i dont know if user will insert a floppy diskette or not. What i wana detect is if floppy modular drive is inserted or if it is not inserted.
You have mention to check INT 11 in assembley code. could you please write a inline asmbley code to detect floppy drive which i can embed in C/C++ program.
or direct me to a web page which can give me an example of asembly code to detect INT 11.
Thank You

Read in the byte at the bios data area 40:11
mask out everything but the top two bytes
byte =& 192; // bits 6 & 7- bits 7 & 6, number of disk drives attached, when bit 0=1
00 - 1 drive
01 - 2 drives
10 - 3 drives
11 - 4 drives

![]() |
Help Again...
|
MSDOS Version 1
|

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.
| Ads by Google |