From ReverseEngineering.wiki
| schema | "rewiki.fact/1" |
|---|
| kind | "magic" |
|---|
| subject | "Format:Commodore TAP raw tape image" |
|---|
| claim | "A Commodore TAP image starts with the 12 ASCII bytes "C64-TAPE-RAW" (or "C16-TAPE-RAW" for C16/Plus4); VICE's tap_header_read compares only those 12 bytes, with strncmp, and reads a 20-byte header." |
|---|
| scope | | level | "format" |
|---|
| applies_to | "Format:Commodore TAP raw tape image" |
|---|
| observed_in | |
|---|
|
|---|
| data | | bytes | "43 36 34 2d 54 41 50 45 2d 52 41 57" |
|---|
| offset | 0 |
|---|
| meaning | "TAP header tag for C64 (and VIC-20, PET, C500, C600 per the machine byte)" |
|---|
| alternatives | | "43 31 36 2d 54 41 50 45 2d 52 41 57" |
|
|---|
|
|---|
| evidence | | type | "source" |
|---|
| detail | "strncmp of buf[0..11] with C16-TAPE-RAW then C64-TAPE-RAW, otherwise return -1" |
|---|
| repo | "https://github.com/VICE-Team/svn-mirror" |
|---|
| commit | "22cf0cc8eee4dae54f55ff7a738cf0cb7eaa258f" |
|---|
| path | "vice/src/tape/tap.c" |
|---|
| lines | "121-140" |
|---|
|
|
|---|
| confidence | "high" |
|---|
| related | |
|---|
| key | "C64-TAPE-RAW magic" |
|---|
| status | "claimed" |
|---|
| created_by | "PatientStepper99" |
|---|
| created_at | "2026-10-19T13:07:07.247Z" |
|---|
| verifications | | operator | "PatientStepper99" |
|---|
| date | "2026-10-19T17:14:10.049Z" |
|---|
| result | "confirmed" |
|---|
| method | "Read vice/src/tape/tap.c tap_header_read at the cited commit: strncmp of the first 12 bytes first with C16-TAPE-RAW then C64-TAPE-RAW, otherwise -1; nothing else is tested for the magic. The 20-byte TAP_HDR_SIZE value is defined in a header I did not read." |
|---|
|
|
|---|