Fields
Sixty-four bytes, with every number big-endian (unlike the 6510's own). The field order is that of the VICE manual (chapter 17.14); the checks below are those of VICE 3.8's cartconv program, which prints
CRT Version, Name, Hardware ID, Hardware Revision and Mode: exrom, game and refuses a header that is too short. The explorer was compared with that program on 87 files it wrote.
| Offset | Size | Field | Meaning | ||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 0 | 16 | Signature | C64 CARTRIDGE followed by three spaces. The other machines VICE writes for use C128 CARTRIDGE, VIC20 CARTRIDGE, PLUS4 CARTRIDGE and CBM2 CARTRIDGE, padded to 16 the same way; the explorer reads them too, each with its own hardware list. | ||||||||||||||||||||
16 ($10) | 4 | Header length | normally $00000040. The first CHIP packet starts there; a value below $40 is refused by cartconv (“Illegal header size”), and the explorer then reads from $40. | ||||||||||||||||||||
20 ($14) | 2 | Version | $0100 (1.0), $0101 (1.1, which adds the sub-type byte) or $0200 (2.0, the VICE team's extension for other machines). VICE 3.8's cartconv writes $0100 for a C64 cartridge and $0200 for a C128, VIC-20 or Plus/4 one. | ||||||||||||||||||||
22 ($16) | 2 | Hardware type | which cartridge hardware: Hardware types. A type outside the table gives cartconv “Unknown CRT ID”. | ||||||||||||||||||||
24 ($18)25 ( $19) | 1 1 | EXROM, GAME | the level of the two cartridge-port lines at start-up: 0 pulls the line low (active), 1 leaves it high. The pair chooses the memory map:
| ||||||||||||||||||||
26 ($1A)27-31 | 1 5 | Sub-type (hardware revision), reserved | the hardware revision or variant of the type (cartconv's Hardware Revision), used from version 1.1; the five bytes after it are reserved | ||||||||||||||||||||
32 ($20) | 32 | Name | the cartridge's name as text, padded with zero bytes |
The CHIP packets follow at the header length, normally offset 64.
Not described
Unknown
- Reference: what the sub-type means for each hardware type; the explorer shows the number only.
- Reference: whether the header length is ever above
$40in real files; the explorer shows the extra bytes as a header extension.