Header Hacker II

See all articles from ZX-Appeal Apr 88
Author(s): Bill Rutter
Publication: ZX-Appeal
Pub Details: ZX-Appeal Apr 88
Date: April 1988
Pages: 8

Early Spectrum software had only rudimentary protection built in, but as piracy became a serious problem, these methods became exceedingly sophisticated. While it can be said that no method offers complete protection, the time required to solve the problems may be more than the pirate is prepared to spend.

Programmers have many ingenious ways of preventing software piracy, and these make it very difficult to make back-up copies, and cause problems for hackers who wish to examine and/or modify programs.

The best way to deal with this is by using an interface like Multiface, which lets one stop, copy, examine and modify the contents of any register at any time. Lacking this, the first task is to try and break into the Basic Loader by MERGING, or using the short routine from Part I. If the header lists in Basic, the appropriate POKES can be inserted before the final PRINT USR or RANDOMISE USR statement. If the screen is blank with the o.k. message, try changing the PAPER or INK color, as the INK and PAPER may be the same. If this fails try LIST I, or LLIST to the printer. If the first line is 0 (zero), try

POKE 1+PEEK 23635+256*PEEK 23636,1

to make the first line #1, and thus editable. If all this fails, and the first line is 0 REM, orjust 0,then the loader is in machine code, and cannot be dealt with without a disassembler.

In the case of Adventure Games where text is inputted, it is sometimes possible to LIST or LLIST the entire vocabulary that the program will recognise. Either MERGE “” the loader, and note how many blocks of CODE load after the SCREEN$, or LOAD”” and observe how many blocks of CODE seem to load. First load the code ONLY, then try the following –

10 FOR x=24201 TO 55000: IF PEEK x<VAL"65" OR PEEK x>VAL"122" THEN NEXT x
20 PRINT CHR$ PEEK x;: NEXT x

Don’t be surprised to see some rude words occasionally (e.g. GREMLINS)! This works for all the KET TRILOGY, SPIDERMAN, EUREKA GREMLINS, et al.

Part III will review and explain some of the more common methods of programme protection.

Note: Type-in program listings on this website use ZMAKEBAS notation for graphics characters.