REHABILITATING DISABLED [BREAK] KEY
Include this routine at the beginning of your next Autoboot BASIC program for an elegant method of selectively disabling the [BREAK] key.
When your program is booted normally, it will be safe from overly-curious or clumsy fingers. If you wish to modify the program, boot it while pressing the [SELECT] key and the [BREAK] key will be re-enabled.
JS 1 BRK=1:IF PEEK(53279)=5 THEN BRK=0
VL 2 GOTO 10
VE 5 IF BRK THEN POKE 16,112:POKE 53774,112:POKE 580,1
TA 10 REM START OF YOUR PROGRAM
LB 20 REM (USE 'GOSUB 5' TO DISABLE [BREAK] KEY)
Next time you alter RAMTOP (location 106) to make room for your own machine language routines, use the Iine below to make sure RAMTOP is reset to its original value.
POKE 106, PEEK(740):GRAPHICS 0