Data East Protection
The game sends a small program to the disk drive, which measures the positions of the sync marks on one track of the original disk: track 19 or track 17, depending on the release. The disk itself contains only standard sectors without read errors, so it can be copied sector by sector, but the copy only works if the measured track looks exactly like the original.
The drive program is stored encrypted in the game (each byte is EOR-ed with the previous byte). It starts behind the header of one sector of the track and then, for a number of consecutive sync marks,
- counts the bytes from one sync mark to the next (header to data block, data block to the next header),
- stores the first byte after the sync mark (and in one variant also the last byte before it, the gap byte).
The values must repeat from sector to sector, i.e. all measured sectors of the track must have exactly the same distances. This is the case on a disk written by a mastering machine in one pass.
Two variants were found:
- Fairlight, Kid Niki: Radical Ninja: 16 sync marks are measured. The drive program calculates a checksum of itself, and the eight measured bytes together with the drive program are the key (EOR) for 256 bytes in the drive buffer at $0500, which the game reads with "M-R" and uses as part of its program. With other gap lengths or gap bytes the key is wrong and the game crashes or shows a black screen. The drive program contains a text ("NEW TWIST" in Fairlight, "HI MIKE!" in Kid Niki). On Kid Niki a changed gap on track 18 stops the game as well.
- Karate Champ: the values of the first sector are compared with those of the following 17 sectors; they are not used as a key.
All disks found with this protection so far carry the duplicator record "C64 1540/1541 NORMAL 600 RPM DUP" on track 36.