CYAN Loader B: Difference between revisions
Created page with "Descriptions needs to be done. ==== Pages that refer to this protection ==== {{Special:Whatlinkshere/CYAN Loader B}}" |
Description of the CYAN Loader protection (loader, check, disk signature, failure, variants, emulation) |
||
| Line 1: | Line 1: | ||
Disk layout B of the [[CYAN Loader V2]] protection (track 32 weak-bit check). The loader, the check and the behaviour on failure are described on the [[CYAN Loader V2]] page; this page describes the disk signature. | |||
==== Pages that refer to this protection | Layout B is found on releases from 1988 and 1989 (Palace Software, Screen 7, Firebird, Cascade, Gremlin). | ||
== Disk signature == | |||
Track 32, sector 1 (an empty block, format pattern $4B $01 $01 ...): | |||
* The '''data block is complete''' and has a correct checksum. | |||
* It is followed by six or seven normal gap bytes ($55). | |||
* After that, from GCR byte 332-334 (counted from the end of the data block sync), comes an unstable area of about 10 bytes, mostly dense flux transitions that read as $FF/$FD/$7F-like values, different on every read. Then the next header sync follows. | |||
The check reads GCR bytes 335-337, which lie directly in the unstable area. Two reads practically never match, so the check is very reliable on a real drive. | |||
Example from the KryoFlux stream of the [[World Cup Year 90 Compilation]] (Gary Lineker's Hot-Shot!), bytes 326-340 after the data sync of 32/1 in three revolutions: | |||
<pre> | |||
55 55 55 55 55 55 4d fd 7f fb fc bf 97 ff f7 | |||
55 55 55 55 55 55 4d 7f 5f ff ff 5e ff ff f9 | |||
55 55 55 55 55 55 4f fe 79 eb bf bf f7 ef a7 | |||
</pre> | |||
== G64 images == | |||
The unstable area is stored in the G64 images in different ways. In some it became a run of zero bits inside the end of the data block, as in layout A (e.g. [[Rick Dangerous]], [[Steigar]]). In others it is one captured set of irregular bits that contains runs of 4-6 zero bits ([[World Cup Year 90 Compilation]]). VICE reads zero runs as random bits in both cases, so the check passes (tested with VICE 3.10). With some images it needs several rounds: [[Rick Dangerous]] needed 1-4 rounds, so about one start in eight can fail. Reset and load again in that case. | |||
A G64 cannot be used to tell layout B from layout A. The layout can only be determined from the flux streams. | |||
== Reliability == | |||
On a real 1541 the check passes in practically every start for all examined disks (model estimate from the streams, see [[CYAN Loader V2]]). | |||
== Pages that refer to this protection == | |||
{{Special:Whatlinkshere/CYAN Loader B}} | {{Special:Whatlinkshere/CYAN Loader B}} | ||
Latest revision as of 08:33, 9 November 2026
Disk layout B of the CYAN Loader V2 protection (track 32 weak-bit check). The loader, the check and the behaviour on failure are described on the CYAN Loader V2 page; this page describes the disk signature.
Layout B is found on releases from 1988 and 1989 (Palace Software, Screen 7, Firebird, Cascade, Gremlin).
Disk signature
Track 32, sector 1 (an empty block, format pattern $4B $01 $01 ...):
- The data block is complete and has a correct checksum.
- It is followed by six or seven normal gap bytes ($55).
- After that, from GCR byte 332-334 (counted from the end of the data block sync), comes an unstable area of about 10 bytes, mostly dense flux transitions that read as $FF/$FD/$7F-like values, different on every read. Then the next header sync follows.
The check reads GCR bytes 335-337, which lie directly in the unstable area. Two reads practically never match, so the check is very reliable on a real drive.
Example from the KryoFlux stream of the World Cup Year 90 Compilation (Gary Lineker's Hot-Shot!), bytes 326-340 after the data sync of 32/1 in three revolutions:
55 55 55 55 55 55 4d fd 7f fb fc bf 97 ff f7 55 55 55 55 55 55 4d 7f 5f ff ff 5e ff ff f9 55 55 55 55 55 55 4f fe 79 eb bf bf f7 ef a7
G64 images
The unstable area is stored in the G64 images in different ways. In some it became a run of zero bits inside the end of the data block, as in layout A (e.g. Rick Dangerous, Steigar). In others it is one captured set of irregular bits that contains runs of 4-6 zero bits (World Cup Year 90 Compilation). VICE reads zero runs as random bits in both cases, so the check passes (tested with VICE 3.10). With some images it needs several rounds: Rick Dangerous needed 1-4 rounds, so about one start in eight can fail. Reset and load again in that case.
A G64 cannot be used to tell layout B from layout A. The layout can only be determined from the flux streams.
Reliability
On a real 1541 the check passes in practically every start for all examined disks (model estimate from the streams, see CYAN Loader V2).