What is the structure of an ATR disk file?
STRUCTURE OF AN SIO2PC ATARI DISK IMAGE: There is first a 16 byte header with the following information: WORD = special code* indicating this is an Atari disk file WORD = size of this disk image, in paragraphs (size/16) WORD = sector size. (128 or 256) bytes/sector WORD = high part of size, in paragraphs (added by REV 3.00) BYTE = disk flags such as copy protection and write protect; see below: The 9th byte of the header contains information in individual bits. Bit 4 = 1 means the disk image is treated as copy protected (has bad sectors). Bit 5 = 1 means the disk is write protected. WORD=1st (or typical) bad sector; see below: The 10th and 11th bytes of the header are a word which contains the number of the first (or of a typical) bad sector. What I mean by typical is that it does contain both bad sector status and good sector status. See the section in README.TXT or in 1050.TXT on copy protection emulation to learn what goes in those sectors. SPARES 5 unused (spare) header bytes (cont