www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/02/21/16:53:20

Xref: news2.mv.net comp.os.msdos.djgpp:1301 comp.os.msdos.programmer:21033 comp.sys.ibm.pc.hardware.storage:44249
From: raster AT indirect DOT com (Charles Dye)
Newsgroups: comp.sys.ibm.pc.hardware.storage,comp.os.msdos.programmer,comp.os.msdos.djgpp
Subject: Re: _bios_disk using C to read a logical drive's sectors
Date: 20 Feb 1996 00:23:04 GMT
Organization: Internet Direct, Inc.
Lines: 19
Message-ID: <4gb498$la@globe.indirect.com>
References: <DMz38A DOT 1Hp AT mv DOT mv DOT com>
NNTP-Posting-Host: s53.abq-dialin2.hollyberry.com
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

In article <DMz38A DOT 1Hp AT mv DOT mv DOT com>, kaikow AT standards DOT com wrote:
>I am having trouble finding "documentation" of how to read sectors from 
>logical drives. It appears that I am not the only one having such 
>problems, as I have found one shareware and one freeware disk editor that 
>produce differing results. Alas, neither editor is in source form, so I 
>am unable to see what they are doing.

Use INT 25 and INT 26 instead of the BIOS calls.  These work with logical,
not physical, drives.  Be advised, these interrupts are kinda weird.  One,
they leave a 'junk' word on the stack; you have to pop it off.  Two, these
functions can take one of two forms, depending on whether or not the logical
drive is >= 32 meg.

>Using the DEBUG command, I can see sector 0 on each logical drive 
>(altough I have not yet tried that with the CD-ROM drive).

Forget the CD.  It's a network device, not a block device.

raster AT indirect DOT com

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019