Chapter 7 Type of Source Statements

7.6Comment Statements

The comment statements start from:

1)an asterisk (*) in the beginning of the line

2)a semicolon (;) in the beginning or middle of the line

If you find an asterisk (*) in a line, the whole line is the comment statement.

If you find a semicolon (;) in a line, the sentence after the semicolon is the comment statement.

No matter what a comment is, it will not affect program operation of function. Comments are used to explain data structures, program algorithms, etc.

Comment statements are an important structural element of documentation. You should add comments that are detailed as possible to enhance program maintenance.

The example below shows comment statements.

************************************************

*

MN1030 Series Cross-Assembler

*

*

Sample Program

 

*

************************************************

#include

“ram.h”

;RAM definition file

#include

“macro.h”

;macro definition file

#define

 

VERSION

;conditional assembly definition

*Program Start main

.

.

124 Comment Statements

Page 136
Image 136
Panasonic MN1030 user manual Comment Statements, Conditional assembly definition, Program Start main