Fields
The first 64 bytes. The numbers are little-endian, as the 6502's are. The layout is that of the VICE manual (17.2) and Schepers' T64.TXT; the offsets were also compared with the T64 reader of the masswerk PET emulator
(petutils.js), which reads the signature, the version at $20, the two counts and the name at $28.
| Offset | Size | Field | Meaning |
|---|---|---|---|
| 0 | 32 | Signature | text padded with zero bytes: C64S tape image file, or C64 tape image file; an older form C64S tape file is also seen. A reader checks only that it begins C64 and contains tape. |
32 ($20) | 2 | Version | a little-endian number. The VICE manual names $0100 (version 1.0), $0101 (1.1, which adds entry type 2, a tape file with header) and $0200 (2.0, which adds types 4 and 5). Schepers' T64.TXT knows $0100 and $0101 and says its author is not sure what differs. VICE's reader does not check the number ("way too many images with broken version number"). The explorer flags any other value. |
34 ($22) | 2 | Maximum entries | how many 32-byte entries the directory has, used or not. The directory is exactly this long. |
36 ($24) | 2 | Entries in use | how many of them hold a file. Some tools leave it wrong; the explorer reads every entry and counts those whose type is not zero. |
38 ($26) | 2 | Unused | not used |
40 ($28) | 24 | Tape name | PETSCII, padded with spaces ($20). The masswerk emulator treats the placeholder ASS PRESENTS: as no name, which suggests some tools wrote that. |
The directory starts at offset 64.
Not described
Unknown
- Reference: what an unused byte holds in files from tools other than C64S: the two bytes at
$26and, in each entry, the two at +6 and the four at +12 are marked "free" or "not used" in both sources, with no content required.