English
Language : 

NSB8 Datasheet, PDF (71/158 Pages) List of Unclassifed Manufacturers – BASIC interpreter for Z80 family
ITALIAN TECHNOLOGY
grifo®
CONTROL-C, THE PANIC BUTTON
Occasionally, you may desire to interrupt a program’s execution at some random point while it is
running. This may be because you wish to repair a program error, or because you do not want program
execution to continue to completion.
Your panic button is <control-C>. This stop everything signal is sent to the card whenever you hold
down the control key then press the C key at the same time on your PC.
If a program is running, the currently executing statement will finish, and the message
STOP IN LINE XXXXX
will be printed on the terminal, where XXXXX will actually be the line number where execution
stopped.
If you are listing a program when <control-C> is pushed, the line being listed will completed, and
the message
STOP
will be sent to the console terminal.
Whenever you use <control-C>, you will be returned to BASIC’s direct mode, where you are free
to examine the program and variables.
Perhaps you may someday panic out of a long running program because you fear that is caught in
an endless loop. However, upon examination of the program and its variables, you discover that the
program is operating correctly, but just takes a long time to finish. In this and similar instances, you
may use the CONT command to resume execution at the point where the program was interrupted
by <control-C>. You may not use CONT if, during the interruption, you modify any part of the
program text.
BASIC may be instructed to ignore the <control-C> command. This is accomplished by changing
certaine internal data in the BASIC interpreter itself, a procedure described in section
PERSONALIZING BASIC. Because it involves modification to BASIC and also makes it impossible
to stop an improperly written runaway program without somehow stopping the computer altogether,
you should leave <control-C> enabled until you program is fully debugged.
SEE ALSO:
Command CONT
Statement STOP
Section SOME BASIC CONCEPTS
Section PERSONALIZING BASIC
NSB8
Rel. 5.10
Page 59