[Coco] disabling the break key in BASIC programs.

Robert Emery theother_bob at yahoo.com
Wed Mar 29 10:18:28 EST 2006



--- Aaron Banerjee <spam_proof at worldnet.att.net> wrote:

> All,
>    I recently stumbled on an old routine I used to use for disabling the
> break key in BASIC programs.  I was just trying to decipher it.
> 
> 1  IF PEEK(&H3EB9)<>32 THEN CLEAR 350,&H3EA0:FOR I = &H82B9 TO &H831E:
> POKE I-&H4400, PEEK(I): NEXT I ELSE 3
> 2  FOR I = 0 TO 2:POKE &H3EBD+I,18:NEXT
> 3  POKE &H19B,&H3E:RUN5
> 4  REM  PROGRAM STARTS ON LINE 5
> 
> <snip>
> 
> p.s.  The above worked on an Extended Color BASIC 1.0 machine...  I
> haven't a clue if it would on a more "modern" coco.
> 

On the CoCo3, I use POKE&HADEB,57. This speeds up Basic *a lot* by bypassing
the Break trapping routine, but you can still test for CHR(3) to see if the
Break key was pressed. ISTR that POKE&HADEB,19 restores normal operation.

Bob


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 



More information about the Coco mailing list