in BASIC ROM:
|List of all BASIC keywords|
Type: Command General Programming-Syntax: CONT
Note that CONT fails to work if the BASIC program has been edited after right after a stop; editing the program recalculates and overwrites the start of variable memory pointers, effectively clearing the variable memory. Therefore, trying to CONTinue a program that was stopped, then edited, yields the BASIC error message ?CAN'T CONTINUE ERROR..
In case the program stop is caused by an error one might take a GOTO into consideration to continue at a line somewhere after the failing statement.
Any given parameter to CONT raises a ?SYNTAX ERROR.
An interesting usage of CONT might be as a halt statement, which is similar to a GOTO to the same line or a
WAIT 0,1, but shorter in code size. In contrast to WAIT a break with is still possible. The line number showed is always from the line of the last executed END or STOP command, otherwise 0.
Examples[edit | edit source]
CONT in direct mode[edit | edit source]
After giving CONT one gets
AFTER 'END' PART 2
CONT as wait statement[edit | edit source]
10 PRINT "WAITING ..." 20 CONT
Run the program and breaking it withleads to
WAITING ... BREAK IN 0 READY.
Since no END or STOP has been called before the line number is still in initialized to 0 even though the break happened at line 20.