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

ICQ: 9769343, Homepage: http://www.obobo.demon.co.uk/

Reply via email to