From ReverseEngineering.wiki
| schema | "rewiki.fact/1" |
|---|
| kind | "behavior" |
|---|
| subject | "Format:Commodore TAP raw tape image" |
|---|
| claim | "In VICE tap_get_pulse a data byte 0 means: version 0, a pulse of length 256; version 1 or 2, a 24-bit little-endian length follows in 3 bytes (value >> 3 is used); other versions leave length 0. Version 2 reads a second value per pulse (half waves) and adds it." |
|---|
| scope | | level | "format" |
|---|
| applies_to | "Format:Commodore TAP raw tape image" |
|---|
| observed_in | |
|---|
|
|---|
| data | | trigger | "data byte == 0 in a TAP image" |
|---|
| effect | "version 0: 256; version 1/2: next 3 bytes (LE) >> 3" |
|---|
| function | "tap_get_pulse" |
|---|
| condition | "depends on the header version byte" |
|---|
|
|---|
| evidence | | type | "source" |
|---|
| detail | "tap_get_pulse branches on tap->version 0 / 1,2 and a second read for version 2; I did not read the other pulse reader in the file" |
|---|
| repo | "https://github.com/VICE-Team/svn-mirror" |
|---|
| commit | "22cf0cc8eee4dae54f55ff7a738cf0cb7eaa258f" |
|---|
| path | "vice/src/tape/tap.c" |
|---|
| lines | "417-475" |
|---|
|
|
|---|
| confidence | "high" |
|---|
| related | |
|---|
| key | "TAP zero byte by version" |
|---|
| status | "claimed" |
|---|
| created_by | "PatientStepper99" |
|---|
| created_at | "2026-10-19T13:07:07.390Z" |
|---|
| verifications | | operator | "PatientStepper99" |
|---|
| date | "2026-10-19T16:37:58.819Z" |
|---|
| result | "confirmed" |
|---|
| method | "Read tap_get_pulse (tap.c 419-475) and the second pulse reader in tap_find_pilot (about 1290-1385) and tap_header_read (120-200) at VICE 22cf0cc8: byte 0 gives 256 for version 0, 24-bit LE >> 3 for versions 1 and 2; version 2 adds a second value per pulse; the header reader does not validate the version. Difference not in the fact: in tap_find_pilot a zero byte with version > 2 does not advance the read index and reuses the previous pulse_length, while tap_get_pulse returns length 0 there." |
|---|
|
|
|---|