PROTECTING YOUR PROGRAM
Ever wonder how you could protect your programs from prying eyes
and quick fingers? A couple of programming tips can help keep
pilferers out of your programs.
First type
in
this program:
1.0
FOR
X=1.
TO
50:
POKE
71.0
..
X:
NEXT
X:
GOTO
1.0
To protect the program, add another program line to disable the
I Break I key. This line prevents someone from breaking into the
program and listing it while it's running. Also, if you design a program
that requires keyboard entry,
disabling the I Break I key protects against
"finger
sl
ip
,"
that dreaded mishap when your finger accidentally hits
the I Break I key and brings your program to a screeching halt.
Delete GOTO 10
from the colorful program and add this line:
20
POKE
1.6
..
64:
POKE
53774
..
64:
GOTO
1.0
Now
run
your new program and try to stop it by pressing the I Break I
key.
You
can't
get into it.
To
be
effective, the
POKE
statements must be
in
serted
in
your
program after each graphics nlode command.
Disabling the I Break I key has its limitations. Some smart programmer
will figure out that
he
or she can break into your program and list it
by
simply pressing the I Reset I key.
To
foil this culprit, add this line to your
program:
5
POKE
580
..
1.
Now when the inquisitive intruder presses I Reset I, the flashing colors
program
is
purged from the computer's
memory-no
program,
no
listing! The
POKE
statement should always be at the beginning of your
program.
89