mk90.basic.statements

Statement END

Terminate the program and return to the shell.

Syntax

END

Parameters

No parameters.

Behavior

Closes the one data file if open, releases the executable reader and returns control to the shell. A complete output is committed; an incomplete output produces an error and preserves the older file.

END and STOP have the same behavior; STOP does not retain a resumable program state. An END opcode is also appended by the compiler at end of source.

Example

10 PRINT "DONE"
20 END

Limits and diagnostics

No CONT or resume command. Completed earlier file closes remain persistent; errors and SU+C abort writers which have not been published.

Status-code reference.

See also

CLOSE · PRINT · Language syntax