Statement Syntax

The following listing shows the syntax of an assembly language statement. The following table describes the elements of this syntax.

Listing: Statement Syntax
statement ::= [ symbol ] operation [ operand ] [ ,operand ]... [comment ]

operation ::= machine_instruction | assembler_directive | macro_call

operand ::= symbol | constant | expression | register_name
Table 1. Syntax Elements
Element Description
symbol A combination of characters that represents a value.
machine_instructionsymbol A machine instruction for your target processor.
assembler_directivesymbol 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_callsymbol A statement that calls a previously defined macro.
constantsymbol A defined value, such as a string of characters or a numeric value.
expressionsymbol A mathematical expression.
register_namesymbol The name of a register; these names are processor-specific.
commentsymbol Text that the assembler ignores, useful for documenting your code.