[Coco] Re: Disk Basic and 512 byte block floppies.

Theodore Evans (Alex) alxevans at concentric.net
Sun Jan 18 22:19:58 EST 2004


On Jan 18, 2004, at 5:07 PM, John E. Malmberg wrote:

You are right about the problem.  I would have solved it with POKE 
DO+3,S/SS and POKE DO+3,S/DS

> Then I need to modify my COCODISK program to be able to handle 512 
> byte sector floppies.
>
> For the DOS version, I should be able to auto detect the sector size.

I thought about showing you an auto detect algorithm for the coco as 
well.
Read T0,S1 into two buffers.
Invert the values in one.
Reread To,S1 into the inverted buffer
Find where the two differ.

This can be sped up a great deal if you assume that the sector size is 
either 256 or 512 bytes.




More information about the Coco mailing list