On Break Cont; On Break Gosub - AMSTRAD cpc 6128 User Instruction

Integrated computer/disc system
Hide thumbs Also See for cpc 6128:
Table of Contents

Advertisement

ON BREAK CONT
ON BREAK CaNT
10 ON BREAK CONT
20 PRINT "The program wi L L CONTi nue when you try
to
*Break* using [ESC]":PRINT
30 FOR t=1 TO 1000:NEXT:GOTO 20
run
COMMAND: Cancels the action of the
[ESC]
key from stopping the program, and
instead CON T inues execution. Care should be taken when using this command, as
the program will continue until the computer is completely reset; hence you should
S A V E such a program before RUNning it.
ON BREAK C aNT may be disabled within a program by ON BREAK STOP.
Associated keywords: ON BREAK GOSUB, ON BREAK STOP
ON BREAK GOSUB
ON BREAK GOSUB <line number>
10 ON BREAK GOSUB 40
20 PRINT "program running"
30 GOTO 20
40 CLS:PRINT "Pressing [ESC]
If;
50 PRINT "twice caLLs GOSUB-routine"
60 FOR t=1 TO 2000:NEXT
70 RETURN
run
COMMAND: Instructs BASIC to jump to the sub-routine specified in the <line
number> when the
[ESC]
key is pressed twice.
Associated keywords: ON BREAK CaNT, ON BREAK STOP, RETURN
Complete List of Keywords
Chapter 3 Page 49

Advertisement

Table of Contents
loading

Table of Contents