www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2001/02/12/21:21:37

From: NoEmailAds AT execpc DOT com (Chris Giese)
Newsgroups: comp.os.msdos.djgpp
Subject: Re: 18-sector limit with biosdisk()
Date: Tue, 13 Feb 2001 02:06:43 GMT
Organization: PROPULSION GROUP
References: <c2l38toalpafu97en8dn583pmm6ju6haqa AT 4ax DOT com> <Pine DOT SUN DOT 3 DOT 91 DOT 1010208100550 DOT 20284C AT is> <3jo78to69hpd1d0m128fcgk26a3th2qggv AT 4ax DOT com> <2593-Fri09Feb2001165411+0200-eliz AT is DOT elta DOT co DOT il>
X-Newsreader: Forte Free Agent 1.11/32.235
Lines: 46
Message-ID: <3a8896fa$0$96557$272ea4a1@news.execpc.com>
NNTP-Posting-Host: 2de29946.news.execpc.com
X-Trace: DXC=Ja AT 1B`5N84hH AT _B`3GZHfb<]OY4;\eIkh9T?84Q6n=Ho<]E_37>hZ4gc^I>V>L^Oj`lO<3E9iRX4gNG?f AT NCXGGb
X-Complaints-To: abuse AT execpc DOT com
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

"Eli Zaretskii" <eliz AT is DOT elta DOT co DOT il> wrote:

>> From: Jason Green <news AT jgreen4 DOT fsnet DOT co DOT uk>
>> Newsgroups: comp.os.msdos.djgpp
>> Date: Fri, 09 Feb 2001 12:31:29 +0000
>> > 
>> > Does this mean that if we bump the limit to 21 sectors, programs might 
>> > choke with som BIOSes?

I don't believe it will. Most programs assume every floppy disk
is 1.44 meg. These programs will read/write, at most, 18 sectors;
blissfully unaware of the extra capability of biosdisk()

What if someone wants to use 21-sector disks?
1. We presume they are smart enough to patch the sectors-per-
   track value in the floppy parameter table (FPT), so the FPT
   does not restrict them.
2. We fixed biosdisk(), so it does not restrict them.
3. Maybe the BIOS limits them to 18 sectors? I'm not sure it
   does. I presume INT 13h will return some kind of error
   code in this case. The BIOS is not something we can fix.

I will ask others if the BIOS limitation really exists.

>> If there is some doubt then it would be worth to do a simple test
>> before any serious development work on libc.

Are there any popular DJGPP programs that make heavy use of
biosdisk()?

Otherwise, I could write a small test program to check if the BIOS
really does limit reads to 18 sectors. However, the persons doing
the testing must have a floppy with 21 sectors per track to work
with, e.g. the Win95 install floppies, or an oversized Linux boot/
root disk.

>If there's a chance of breaking the library by this change, I think we
>better not do it.  People who need to read non-standard floppies can
>always use __dpmi_int directly.

Agreed, on both counts. biosdisk() _is_ more convenient, though.

-- 
geezer@    | pmode tutorial, homebrew OS:
execpc.com | http://www.execpc.com/~geezer/os

- Raw text -


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