ooPIC Logo

Remark

Main Index
Language Idx
Back to top of pageDescription:
 A Statement that is used to include explanatory remarks in a program.
Back to top of pageSyntax:
 The following shows the format of the Remark syntax.
Visual Basic & BASICC & Java
Rem [<comment>]
// [<comment>]
' [<comment>]
/* [<comment>]
   [<comment>]
 */

The following table lists the elements of the Remark syntax.
ElementDescription
<comment>Optional text of any comment you may want to include.

Back to top of pageOperation:
 When a Remark is encountered during a program's compilation, the text within the <comments> element is ignored.
Back to top of pageRemarks:
 If a line containing a only a line label and a Remark is branched to, then the execution of the program continues with the first executable statement following the Remark.

Remarks take up no program space in the ooPICs EEPROM.

Basic Syntax:
If the Rem keyword follows other statements on a line, it must be separated from the statements by a colon.

After the Rem keyword, a space is required before any comments.

C and Java Syntax:
The characters /* start a comment, which terminates with the characters */.  These comments do not nest.

Back to top of pageExample:
 The following example shows a Remark that is included in the program.
Visual Basic & BASICC & Java
Rem This is the part that adds X and Y
Z = X + Y
// This is the part that adds X and Y
Z = X + Y;

The following example shows multiple lines of remarks.
Visual Basic & BASICC & Java
' This is the part that adds X and Y
'  and puts the value into Z
Z = X + Y
/* This is the part that adds X and Y
   And puts the value into z. */
Z = X + Y;

Back to top of pageVersion History and Bug List:
 Firmware Ver A1: Introduced.

Bugs: No known bugs.


ooPIC Compiler Ver 6.0 (c) Copyright 1997 - 2007 Savage Innovations, LLC.