and
includes text in any form after it. This line is ignored by the
interpreter.
Format
REM <comment>
Parameters
The comment string can contain any character and is terminated
by a carriage return.
Example
This is an example of how to use the REM command:
10 REM COMMAND LINES 20-100 PRINT A LABEL
Comments
Remarks are used for program description and are included as
a separate program line. To append a comment to the end of a program
line, use the exclamation mark (
!
).
A useful
method to keep comments in a stored file (but not in the printer)
is to always start the REM line with the number 1. When all of the
lines are sent to the printer, only the last REM line will stay
resident in the printer. This will require less RAM for large programs.
Example
This is an example of how to re-use the REM command:
1 REM MYPROGRAM COPYRIGHT ME Inc. 2008
1 REM While debugging a port may be left open
5 CLOSE ALL
1 REM Open the ports this program will use
10 OPEN #0: NAME: "SER" ! Restart the console