Re: [cc65] dio_query_sectcount() on Atari ?

From: Marc Rintsch <marc1rintsch.de>
Date: 2012-10-18 11:58:42
On Thursday 18 October 2012 11:07:00 Oliver Schmidt wrote:
> 
> > I can only think of one way that would work across all DOSes, and all
> > types of disks (after all, you may want to have a disk copy routine that
> > copies a boot disk, or oddly sized ATR file).  The only way I can think
> > of is to just try and read sectors until you find the last one-not the
> > greatest method.
> 
> I'd strongly suggest to not implementit that way it's absolutely not
> conformant to expectations. Imagine the disc copy scenario basically
> reading the whole disk twice.

Maybe not reading *all* blocks but perform something like a binary search 
would be an option?

Ciao,
		Marc 'BlackJack' Rintsch
----------------------------------------------------------------------
To unsubscribe from the list send mail to majordomo@musoftware.de with
the string "unsubscribe cc65" in the body(!) of the mail.
Received on Thu Oct 18 12:04:16 2012

This archive was generated by hypermail 2.1.8 : 2012-10-18 12:04:20 CEST