Re: [cc65] dio_query_sectcount() on Atari ?

From: Daniel Serpell <daniel.serpell1gmail.com>
Date: 2012-10-21 17:57:09
Hi,

On Sun, Oct 21, 2012 at 11:00 AM, Oliver Schmidt <ol.sc@web.de> wrote:
>
>> Then there are the multitude of disk drives available for the Atari
>> computer, all of which provided some different features, and some common
>> ones.  There is the "Percom block", which would return data about the drive
>> and disk, including the number of sectors.  Most advanced drives implemented
>> this, and most hard drives.  However, the most popular drives, the Atari 810
>> and Atari 1050 did not.
>
> What DOS is then used to access the 810/1050? And how does that DOS
> know how large they are?

On format, you simply select the target size. Afterwards, the size is stored in
the allocation table. Different DOSs store the size tables
differently, and there
are a multitude of "raw" formated disks, with no DOS.

>> Perhaps the "best" method would be to query for the percom block, and if
>> this isn't available, default to brute force method.  I don't think trying
>> to figure out what DOS formatted the drive is useful in this case.
>

I think is query the percom block, and if it's not present, just
return 0. So, it's
up to the calling application knowing the best method to access the disk.

    Daniel.
----------------------------------------------------------------------
To unsubscribe from the list send mail to majordomo@musoftware.de with
the string "unsubscribe cc65" in the body(!) of the mail.
Received on Sun Oct 21 17:57:39 2012

This archive was generated by hypermail 2.1.8 : 2012-10-21 17:57:42 CEST