Computing.Net > Forums > Disk Operating System > floppy detection

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

floppy detection

Reply to Message Icon

Name: developer
Date: February 19, 2001 at 12:31:28 Pacific
Comment:

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.



Sponsored Link
Ads by Google

Response Number 1
Name: mr o
Date: February 20, 2001 at 03:32:39 Pacific
Reply:

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 installed

or
chk if drive:\null exists if it does then the drive is there


0

Response Number 2
Name: developer
Date: February 20, 2001 at 10:52:25 Pacific
Reply:

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


0

Response Number 3
Name: developer
Date: February 20, 2001 at 10:55:23 Pacific
Reply:

sorry for the typo and confusion i meant to say " at this point in my code" not "career"



0

Response Number 4
Name: mr o
Date: February 22, 2001 at 08:36:12 Pacific
Reply:

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


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More


Help Again... MSDOS Version 1



Post Locked

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


Go to Disk Operating System Forum Home


Sponsored links

Ads by Google


Results for: floppy detection

Floppy disk fail (40) www.computing.net/answers/dos/floppy-disk-fail-40/9668.html

doesnt Detect 1,44 Floppy drive www.computing.net/answers/dos/doesnt-detect-144-floppy-drive/5911.html

Booting using F4 and Hard detection www.computing.net/answers/dos/booting-using-f4-and-hard-detection/15182.html