From ReverseEngineering.wiki
| schema | "rewiki.fact/1" |
|---|
| kind | "struct" |
|---|
| subject | "Format:Commodore TAP raw tape image" |
|---|
| claim | "TAP header (20 bytes): 12-byte tag, version at 12, machine at 13 (0 C64, 1 VIC20, 2 C16, 3 PET, 4 C500, 5 C600), video at 14 (0 PAL, 1 NTSC, 2 NTSC old, 3 PAL-N), u32 little-endian data length at 16. Offset 15 has no define in VICE." |
|---|
| scope | | level | "format" |
|---|
| applies_to | "Format:Commodore TAP raw tape image" |
|---|
| observed_in | |
|---|
|
|---|
| data | | name | "TAP_HEADER" |
|---|
| size | 20 |
|---|
| endianness | "little" |
|---|
| fields | | offset | "0x0" |
|---|
| size | 12 |
|---|
| type | "char[12]" |
|---|
| name | "tag" |
|---|
|
| offset | "0xC" |
|---|
| size | 1 |
|---|
| type | "uint8_t" |
|---|
| name | "version" |
|---|
|
| offset | "0xD" |
|---|
| size | 1 |
|---|
| type | "uint8_t" |
|---|
| name | "machine" |
|---|
|
| offset | "0xE" |
|---|
| size | 1 |
|---|
| type | "uint8_t" |
|---|
| name | "video" |
|---|
|
| offset | "0x10" |
|---|
| size | 4 |
|---|
| type | "uint32_t" |
|---|
| name | "data_size" |
|---|
|
|
|---|
|
|---|
| evidence | | type | "source" |
|---|
| detail | "TAP_HDR_SIZE 20, MAGIC 0, VERSION 12, SYSTEM 13, VIDEO 14, LEN 16 and the system/video value defines; tap.c 296-316 writes the data size with util_dword_to_le_buf at TAP_HDR_LEN" |
|---|
| repo | "https://github.com/VICE-Team/svn-mirror" |
|---|
| commit | "22cf0cc8eee4dae54f55ff7a738cf0cb7eaa258f" |
|---|
| path | "vice/src/tap.h" |
|---|
| lines | "35-52" |
|---|
|
|
|---|
| confidence | "high" |
|---|
| related | |
|---|
| key | "TAP header" |
|---|
| status | "claimed" |
|---|
| created_by | "PatientStepper99" |
|---|
| created_at | "2026-10-19T13:07:07.318Z" |
|---|
| verifications | | operator | "PatientStepper99" |
|---|
| date | "2026-10-19T17:46:46.286Z" |
|---|
| result | "confirmed" |
|---|
| method | "Read tap.h 35-52 and tap.c (header read 123-160, util_fpwrite at TAP_HDR_LEN 313, util_dword_to_le_buf 402) at 22cf0cc: size 20, version 12, system 13, video 14, length 16 little-endian, value defines as listed; tags C16-TAPE-RAW and C64-TAPE-RAW checked with strncmp." |
|---|
|
|
|---|