----- Original Message -----
From: Si Owen <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: 29. zárí 1999 18:05
Subject: RE: SAD Disk format?


> Si Cooke wrote:
> > By the way... does anyone have any documentation on the SAD format?
>
> Never seen an official spec either, but here's what I use:
>
>
> #define SAD_SIGNATURE          "Aley's disk backup"
>
> // Format of a SAD image header (22 bytes)
> typedef struct
> {
>     BYTE abSignature[sizeof SAD_SIGNATURE - 1];
>
>     BYTE bSides;             // Number of sides on the disk
>     BYTE bTracks;            // Number of tracks per side
>     BYTE bSectors;           // Number of sectors per track
>     BYTE bSectorSizeDiv64;   // Sector size divided by 64
> }
> SAD_HEADER;
>
> Followed by actual data: side 0 track 0,  side 0 track 1,  side 0 track 2,
> etc.  So data for the second side of the disk (if any) is slightly more
than
> halfway through the image file.  DSK images (as well as lacking the
header)
> interleave the tracks instead, giving: side 0 track 0,  side 1 track 0,
> side 0, track 1, etc.
>
> SAD version 2 is just the same but gzipped up.
>
> Si

100% Right.
SAD is properly handled by SimCoupe, and 2sad.

And source code is the specification:
fdi.c from SimCoupe, 2sad.cpp from 2sad.

----------------------------------------------------------------
Aley [eili] Keprt - student, programmer (multimedia soft. etc.)
                    phone: +420-68-538 70 35
     e-mail: [EMAIL PROTECTED]  ***  http://get.to/aley
----------------------------------------------------------------


Reply via email to