SHORTCUTS
ZX Computing, July 1986

This is the first showcase of readers' short routines. There's a #10
prize for each published routine so if you've got a novel, useful or
eccentric mini program for the Spectrum or QL why not submit it to
Short Cuts?


- - - - - - - - - - 
SOUND KIT

[The version in CUTS8607.TAP includes the correction]
[from the October issue.                        JimG]

B.J. Kamphuis has been a regular contributor to ZXC for many moons.
This neat little routine extends the Spectrum's beep in a simple and
easy way.

It is located at address 32000 to allow it to work on 16K machines
(are there still any around?) but can be relocated to any address. I
would suggest 60000 and to do this change line 30 to CLEAR 59999 and
all numbers 32000 to 60000.

To use it in your own programs include lines 10 to 70. You can of
course put them as a subroutine at the end of your program, and place
your program at lines 100 onward.

The lines 100, 110 and 120 are there to demonstrate some of the sounds.

To use the code RANDOMIZE USR 32000 (or 60000 or whatever address you
used) and follow it immediately on the same line with :REM !x,y,z

The x and y are the length of the note and can be any of the
Spectrum's numbers, letters or keywords.

The z is the pitch of the note and the only restriction is that the
CODE of the z value is GREATER or EQUAL to that of the CODE of the y value.

Note that an exclamation mark must also follow the REM.


- - - - - - - - - - 
CHARACTERS

Jasper Visser sent us this short (as we like 'em) routine to print in
a rather original style on the screen. Type it in and give it a try!


- - - - - - - - - - 
SECURITY PROGRAM

Dean Carpenter is getting paranoid about protecting his program, and
who can blame him with all those would be Captain Hooks around.

Add it to your program, either at the start as printed or as a
subroutine, and autostart it by saving it using a LINE number ie. SAVE
"mygame" LINE 5.

Notice the unusual POKEs at the start which, unlike the usual Poke of
23659,0 which will not allow the use of INPUT, only crashes if an
error report is thrown - ie. someone tries to break into the program.
Another first for ZXC?

Change the password by changing the letters YOUR CODEWORD in line 30.
It may be wise not to use anything too complex; after all, you've got
to remember it!

Keep those short cut programs coming!
