Tight Security

See all articles from Sinc-Link v10 n3
Author(s): Andrew Ho
Publication: Sinc-Link
Pub Details: Sinc-Link v10 n3 (Volume 10, Issue 3)
Date: May/June 1992
Pages: 38

Summary

This short ZX81 item presents a machine code routine, stored in a 50-character REM line, that protects a program from unauthorised use. On loading, the routine prints a prompt and repeatedly calls the ROM key-scan routine for about 27 seconds waiting for a secret combination of keys; if the keys are not pressed in time it jumps to the ROM’s NEW routine and erases the program, and BREAK cannot get round it. The piece explains how to call the routine from the line after SAVE so that copies stay protected, gives a table of example codewords with the values to poke, a hex listing with explanations, and a three-line sample program.

Reprinted from an unnamed publication (no source is printed on the page), by Andrew Ho, Leicester.