ENINT
Format: ENINT line number
Supported by: Quest Super BASIC 3.0, 5.0 and 6.0, RCA BASIC3 V1.1, Telmac SBASIC v 24.3
Similar commands: -
ENable INTerrupt, after this command is given a BASIC program can be interrupted, when this happens the program will jump to the specified line number.
Example:
5 ENINT 1000 10 LET A = 0 20 LET A = A + 1: PR A 30 GOTO 20 100 END 1000 PRINT "INTERRUPT"
When an interrupt occurs the program will be stopped by a jump to line number 1000.
See also the DISINT, DISable INTerrupt command.
Note that the interrupt here is a CDP 1802 Interrupt which in the default TMC-600 hardware is NOT connected to anything. External hardware could however make use of this, allowing a BASIC program to execute a specific routine when triggered by the hardware.