Rpbasic-52 programming guide – Remote Processing BASIC 52 User Manual
Page 112

RPBASIC-52 PROGRAMMING GUIDE
2-93
REM
Syntax:
R E M any ASCII text
Function:
Allows remarks in a program or on command line
Mode:
Comm and, run
Use:
100 RE M Yo u can put any thing you wa nt here
REM T his remark has no line number so will be discarded by RPBASIC -52
Cards:
All
D E S C R IP T I ON
The REM instruction lets you add comments to your program. Any text after a REM is ignored. REM
instructions cannot be terminated with a colon, but they can follow colons. RPBASIC-52 lets you use REM
in command mode and w hile downloading programs. A REM without a preceding line number is ignored by
RPBASIC-52. This allows you to place comments in an off-line source code text file and have them stripped
out when you download the text file to the card.
Appropriate comments make your programs easier to understand and maintain, but do slow program
execution and consume program memory.
Multiple statements per line following a REM are ignored since they are considered part of the remark. Refer
to the example.
EXAMPLE
100 REM A comment
120 PRINT A :REM PRINT A+2
>run
0