The following listing shows the syntax of an assembly language statement. The table aftre the listing describes the elements of this syntax.
statement ::= [ symbol ] operation [ operand ] [ ,operand ]... [ comment ] operation ::= machine_instruction | assembler_directive | macro_call operand ::= symbol | constant | expression | register_name
| Element | Description |
|---|---|
| symbol | A combination of characters that represents a value. |
| machine_instruction | A machine instruction for your target processor. |
| assembler_directive | A special instruction that tells the assembler how to process other assembly language statements. For example, certain assembler directives specify the beginning and end of a macro. |
| macro_call | A statement that calls a previously defined macro. |
| constant | A defined value, such as a string of characters or a numeric value. |
| expression | A mathematical expression. |
| register_name | The name of a register; these names are processor-specific. |
| comment | Text that the assembler ignores, useful for documenting your code. |