How to Make Back-up Copies of Spectrum Copy-Protected Programs

See all articles from Sinc-Link v4 n1
Author(s): Karim Rahemat
Publication: Sinc-Link
Pub Details: Sinc-Link v4 n1 (Volume 4, Issue 1)
Date: January/February 1986
Pages: 6-7

Special thanks to Ariel Frailich for advise and for technical information.

NOTE: THIS ARTICLE IS PROVIDED FOR USE WITH YOUR PERSONAL LIBRARY ONLY AND NOT FOR STEALING COPYRIGHTED SOFTWARE.

How many times have you tried to make a back-up copy of your new software? It seems that whenever you try the copy you have, it doesn’t work. Some of these programs may have anti-merge, headerless files, jerky leaders, short leaders, files too close together, fast loaders, false headers; some may be 48k long or have yet other types of copy protection.

Let’s discuss some of these copy protection devices. First we have the anti-MERGE program, which prevents the BASIC loader from being MERGEd; it can only be LOADed. This can be bypassed with fast reflexes and knowing when to hit the BREAK key. Start by using the header reader program to find the autostart line number of the program. Start LOADing the program and press the BREAK key when the LOAD is just about to finish. (Experiment here.) You should see an error report stating that BREAK was pressed in some line number. Save the program with the original autostart line number.

The next step is to determine whether the next program is headerless, machine code or BASIC. If it’s less than 48k long – say 38-40k – LOAD the code at a higher address than normal. This prevents the program from autorunning. If the file doesn’t start with a header, then a special LOAD routine is used for LOADing the headerless file. This code may be located anywhere in memory and the most likely place is in a DATA statement for POKEing or in the variables area. Use the header reader on the BASIC program and find the autostart number. LOAD .the program as described above for anti-MERGE programs. Now SAVE the file without any autostart line. LOAD HOT-Z and PRINT PEEK 23627+256*PEEK 23628. This will tell you where the variables area starts. Use HOT-Z again at the address you have found above.

You should now see three LD’s, a SC and a call to 0556H. If you have found it, Congratulations! You have just found a routine for LOADing the headerless file. Here’s how it works: first the IX register is LOADed with the start address of the file. The DE register is LOADed with the number of bytes, then the A register is LOADed with FFH or 00H – FFH to load the Data portion or 00H to load the Header portion. A CALL is made to the home ROM routine which does the actual loading. Finally, the routine jumps to the the program which has just been loaded.

EXAMPLE: LD IX,8000H  - START ADDRESS OF FILE
         LD DE,1B00H  - NUMBER OF BYTES TO LOAD (Program length)
         LD A,FFH     - LOAD HEADER ONLY
         SCF          - SET CARRY FLAG
         CALL 0556H   - GOTO LD_BYTES ROUTINE IN ROM
         JP 8032H     - RUN PROGRAM

LOAD rotines for headerless files usually consist of only 7 bytes. This also applies to false headers. Fast LOADers are the trickiest of all protection devices. They are very fussy about clean heads and azimuth alignment. Fast LOADers cannot be fast LOADed themselves; they require a normal (1500 baud) BASIC and machine code program to be loaded first. Every fast LOADer I have hides its fast LOAD code in the Variables area. This can only be discovered with a header reader. The header reader will let you know if any Variables area has been taken. If so, the code is in that area; if not, the code is in either a REM or DATA statement. To find out where the code starts in the Variables area, use PRINT PEEK 23627+256*PEEK23628. Then use HOT-Z to disassemble from the address you found with the PEEK. The code varies from program to program. You’ll just have to experiment. Incidentally, all the above is true for short leaders, jerky leaders and 48k long headerless files. Jerky leaders or pulsed leaders are the most troublesome type of copy protection; copying can only be done via tape to tape. This protection device is now in widespread use. If your program uses jerky or pulsed leaders, you will see the bars (while LOADing the program) go up and down and a short, almost inaudible bleep will go off between bars. As mentioned above,use tape-to-tape copy for back-up. Trying to rid the BASIC of colour control characters issome times difficult: the text bytes themselves may have beenalte red; the RASP system variable may have been POKEd with 255; and other POKEs may exist. This complicates things a lot. Your best bet is to use HOT-Z to disassemble the BASIC program proper and experiment.

In 1984, a new copy protection device was introduced. It has not been extensively used by software houses yet. It goes by the name of TONING and is accomplished by altering the LOAD header patterns. This too requires special code for LOADing the program into the computer and, likewise, the loader part is LOADed normally. There are three types of tone leaders: wide, short and narrow. The “wide” leader produces bars which are further apart than normal bars. The “short” leader shortens the “silent gap” between programs – this “silent gap” is created and expected by the computer and must therefore be present. This “short” leader is of course not LOADable normally. The “tone” leader uses narrower bars than normal. Use tape-to-tape copy for backing up Toned programs.

Let’s now discuss Tape Copiers. We’re not talking about the tape copiers which copy programs from one tape to another via the computer (e.g., Cameron Hayne‘s Tape2Tape). These new ones will LOAD the program into the computer and the SAVE it using the ordinary SAVE routines, giving you clean LOADs. Note that these programs are intended for back-up copies only, not for pirating! Some of these programs are called Kklone 1.0 and 1.1, Pirate7b, Jpclone, 007spy, Maxspy, Tricky, Tape copier 7, Tape copier6. The tape copier will LOAD the file either headerless or with the header and SAVE it in its orginal form. Special copiers will LOAD a full 48k program either headerless or with header or a file larger than 40k long. Some will even copy a 61k long file and still work without errors. When backing up a program with a tape copier, don’t expect too much. These programs can obviously only handle certain situations; again, the only way to find out is to experiment. Your best bet is to try several programs and use your machine code know-how. Software houses are of course continually delevoping new techniques in software protection. Some programs require you to purchase a piece of hardware along with the program. The program checks for the presence of the piece of hardware and then allows you to make backup copies (which of course requires the same hardware to run). And … if the program doesn’t detect the hardware, the program NEWs itself.