Every DMS file starts with a header of 56 bytes. All numbers are big-endian. The layout was read from real files and checked against the source of xDMS 1.3 (Andre Rodrigues de la Rocha, public domain); the table says how far each field is confirmed.
Layout
| Offset | Size | Type | Name | Description |
|---|---|---|---|---|
0x00 | 4 | text | Signature | DMS!. |
0x04 | 6 | – | Reserved | Zeros in most files. Some tools write a tag here (MaPuS, CHK0.43 seen). |
0x0A | 2 | bits | Info flags | See info flags. |
0x0C | 4 | uint32 | Date | Seconds since 1 January 1970 (Unix time), when the disk was packed. xDMS reads it that way (“date in standard UNIX/ANSI format”), and a real file confirms it: DOpus_404.DMS holds 2BF59BAB, May 1993 as Unix time but 2001 as Amiga time, eight years after the program’s release. An earlier version of this page, and of the viewer, took it for Amiga time (1978). |
0x10 | 2 | uint16 | First track | The lowest disk track in the file, normally 0. |
0x12 | 2 | uint16 | Last track | The highest, normally 79. A partial disk has a smaller range (40 to 79, 0 to 39 seen). |
0x14 | 4 | uint32 | Packed size | The sum of the tracks’ packed sizes. |
0x18 | 4 | uint32 | Unpacked size | The sum of the tracks’ unpacked sizes: 901,120 for a disk, more when banner or DIZ text tracks are counted. |
0x1C | 18 | – | Creator details | Describes the machine that packed it: a serial number (u32), then u16 values for CPU, coprocessor, machine type, an unknown, clock and a speed figure. Their values vary between files; their meaning is not confirmed. |
0x2E | 2 | uint16 | Created with | The DMS version times 100: 111 is 1.11. Seen from 102 to 203. |
0x30 | 2 | uint16 | Needed version | The version needed to unpack, same scale. |
0x32 | 2 | uint16 | Disk type | The kind of disk; the values are below. 1 in nearly every file seen, 2 in a few, 0 in some. |
0x34 | 2 | uint16 | Compression | The mode used overall, 0 to 6 (see Compression modes). Each track states its own. |
0x36 | 2 | uint16 | Header CRC | CRC-16 of bytes 4 to 53 (50 bytes). |
Info flags
| Bit | Value | Name | Meaning |
|---|---|---|---|
| 0 | 1 | No zero tracks | Set in many files; confirmed present, meaning from xDMS. |
| 1 | 2 | Encrypted | The packed data is scrambled with a password (see encryption). No file here has it. |
| 2 | 4 | Appends | From xDMS (“Appends”); not seen. xDMS notes that the first and last track fields may be wrong in an appended archive. |
| 3 | 8 | Banner | The file has a banner track. Confirmed, but many files have banner tracks without it. |
| 4 | 16 | High density | From xDMS; no high density file here. |
| 5 | 32 | MS-DOS | A PC (FAT) disk rather than an Amiga one. xDMS prints “MS-DOS”; not seen. |
| 6 | 64 | DMS_DEV_Fixed | xDMS’s name for it; the meaning is not given anywhere found. Not seen. |
| 7 | 128 | Registered | xDMS prints “Registered” when this bit is set and “Evaluation” when it is not: the file was made by a registered copy of DMS. (An earlier version of this page named this bit FILE_ID.DIZ; that is bit 8.) |
| 8 | 256 | FILE_ID.DIZ | The file has a FILE_ID.DIZ track. From xDMS; not seen as a flag (the viewer finds the DIZ by its track instead). |
xDMS prints “None” when the flags are 0 or 0x80. The source is xDMS 1.3 by Andre Rodrigues de la
Rocha (pfile.c, public domain).
Disk types
The value at 0x32, as xDMS 1.3 names it:
| Value | Meaning |
|---|---|
| 0, 1 | AmigaOS 1.0 OFS (the value can also be a disk without AmigaDOS) |
| 2 | AmigaOS 2.0 FFS |
| 3 | AmigaOS 3.0 OFS, international |
| 4 | AmigaOS 3.0 FFS, international |
| 5 | AmigaOS 3.0 OFS, directory cache |
| 6 | AmigaOS 3.0 FFS, directory cache |
| 7 | FMS Amiga system file: not a disk image but an archive of files, which xDMS refuses to unpack |
xDMS’s comment says the original DMS from SDS Software (up to 1.11) used other values here for MS-DOS, AMax and Mac disks, “for future expansion”, and never used them; ParCon Software’s later versions replaced them with the Amiga types above. The values 1 and 2 in the files seen are OFS and FFS by that list.
The CRC
CRC-16 with the reflected polynomial 0xA001 (as ARC and many others), start value
0, no final XOR. The same CRC protects the track headers and the packed data.
Not described
The flags, disk types, date, sizes, version and mode are checked against the xDMS 1.3 source. xDMS does not read the other parts of the header.
Known, not yet covered
- Viewer: an encrypted file is not unpacked (see Compression modes); a disk type 7 file (FMS) is not told apart from a disk image.
Unknown
- Reference and viewer: the creator details at 0x1C to 0x2D (xDMS does not read them), and the bytes at 0x04 to 0x09 other than the tags below. No file here has the encrypted, high density, MS-DOS, appended or device flag, so those are known from xDMS’s names only.
- Reference: what the tool tags in the reserved bytes at 0x04 (MaPuS, CHK0.43) mean and which program writes them is not documented anywhere found.