Syntax
STOP
Description
Halt execution of the program.
With version
6.20 of the firmware, STOP functions like a breakpoint when under
control of BASICtools. When the STOP is executed the BASIC program
halts excecution, but allows BASICtools to dump variable values. Also in BASICtools
RUN will resume execution at the statement following STOP.
Example
'If pin 2 is low halt the processor
IF IO(2) = 0 THEN
PRINT "Processor Stopped"
PRINT "Press Reset to Continue"
STOP
ENDIF
Differences from other BASICs
- none from Visual BASIC
- none from PBASIC, though the breakpoint features are not
supported
See also