Fields
Sixteen bytes. All the numbers are big-endian, unlike the 6502’s own. The signature and the type were compared with the code of the atari5200 emulator on this machine
(detect-file-format.ts and cartridge.ts), which also rejects a file whose ROM is not the size of its type.
| Offset | Size | Field | Meaning |
|---|---|---|---|
| 0 | 4 | Signature | the letters CART |
| 4 | 4 | Cartridge type | a number naming the hardware: see Cartridge types |
| 8 | 4 | Checksum | the sum of all the bytes of the ROM, as the format is described (the emulator here reads it and never checks it; the explorer checks it and reports a difference, tested on built files only) |
| 12 | 4 | Unused | zero |
The ROM follows at offset 16. Its length is the size of the type; a file of another size is reported as damaged or as the wrong type.
Not described
Unknown
- Reference: no real
.carfile was available. atari800’scartridge.c(raw source) writes and checks the header as described here:CART, type and checksum as big-endian 32-bit numbers at offsets 4 and 8, four zero bytes after, and the checksum is the plain sum of the ROM bytes.