USR 832

Author(s): Mike Coughlin
Pub Details: Sinclair Timex User Group Newsletter v3 n3 (Volume 3, Issue 3)
Date: March 1984
Pages: 11

So you’ve loaded the copy protected program you spent the last month writing on your TS1000/ZX81, and it’s so well protected that the keyboard doesn’t work. Not only that but you’ve only got one copy. Serves you right! But there’s a little known trick (first described in Syntax) that will come to the rescue.

Instead of using the normal LOAD “name” comand, use a USR call.

The LOAD and SAVE routines are unusual since they require a name string as input. The syntax checker doesn’t like strings after a USR call. But there are two statements that will work.

LOAD CHR$ USR 832 "name", or
SAVE CHR$ USR 832 "name"

The USR 832 statement will start the LOAD routine, the CHR$ converts whatever is left from USR to an acceptable input to LOAD and SAVE and the whole combination gets past the syntax checker. SAVE CHR$ 832 “” is the more usual form. First your intractable program will be loaded and before it can do any funy business the save routine will execute. If you’real quick (you have five seconds) you can switch tapes and make a copy. As soon as you see the blank screen and the pattern from the SAVE routine, you can hit space and the program will be loaded but “unlocked” from any machine code or BASIC statements that normally run immediately. You can LIST and change BASIC statements, or refer to your detailed notes and POKE corrections to your machine code. You did keep detailed notes didn’t you?