Changes

Jump to: navigation, search

AMSDOS Header

309 bytes added, 19:49, 7 November 2023
{| class="wikitable"
|-
! Offset !! Size !! Name !! Notes
|-
| 0 || BYTE || User number || 0-15, or #E5 for deleted entries
|-
| 1 || 8 BYTES || Filename || Unused characters are filled with space
|-
| 9 || 3 BYTES || Extension || Unused characters are filled with space
|-
| BYTE C || Block number DWORD || Tape onlyZero || Contains all zeroes
|-
| 10 || BYTE || Last block Block number || Tape only
|-
| 11 || BYTE || File type Last block || 0:BASIC 1:Protected 2:Binary (ASCII files don't have headers)Tape only
|-
| WORD 12 || Data length BYTE || ???File type || 0:BASIC 1:Protected 2:Binary (ASCII files don't have headers but a fake header is built in memory with the file type #16, "Unprotected ASCII v1")
|-
| 13 || WORD || Load address Data location || Address of the 2KB buffer
|-
| BYTE 15 || First block WORD ||Load address || Tape only?
|-
| WORD 17 || Logical length BYTE || Actual file length is hereFirst block || Set to #FF, only used for output files
|-
| 18 || WORD || Entry address style="white-space: nowrap;"| Logical length || Actual file length is here
|-
| 36 BYTES 1A || Unused WORD || Entry address ||
|-
| 3 1C || 36 BYTES || Real length Unused || 24-bit number. Just a copy, not used!
|-
| WORD 40 || Checksum 3 BYTES || Unsigned sum of all bytes until this fieldReal length || 24-bit number. Just a copy, not used!
|-
| 43 || WORD || Checksum || Unsigned sum of all bytes until this field|-| 45 || 59 BYTES || Unused || Free to use
|}
1,144
edits