Source language syntax – Zilog ZUSBOPTS User Manual
Page 280

Source Language Syntax
UM017105-0511
252
Zilog Developer Studio II – ZNEO™
User Manual
•
The space of the segment in which the label is defined.
•
The space provided in the
EXTERN
or
XREF
directive.
•
If no space is provided with the
EXTERN
or
XREF
directive, the space check is not per-
formed on the label.
Source Language Syntax
The syntax description that follows is offered here to outline the general assembler syntax.
It does not define assembly language instructions.
<source_line>
→
→
→
→
→
<if_statement>
[<Label_field>]<instruction_field><EOL>
[<Label_field>]<directive_field><EOL>
<Label_field><EOL>
<EOL>
<if_statement>
→
→
→
<if_section>
[<else_statement>]
ENDIF
<if_section>
→
<if_conditional>
<code-body>
<if_conditional>
→
IF
<cond_expression>|
IFDEF
<ident>|
IFSAME
<string_const>,<string_const>|
IFMA
<int_const>
<else_statement>
→
ELSE
<code_body>|
ELIF
<cond_expression>
<code_body>
[<else_statement>]
<cond_expression>
→
<expression>|
<expression><relop><expression>
<relop>
→
==
| < | > | <= | => | !=
<code_body>
→
<source_line>@
<label_field>
→
<ident>:
<instruction_field>
→
<mnemonic>[<operand>]@
<directive_field>
→
<directive>
<mnemonic>
→
valid instruction mnemonic
<operand>
→
→
<addressing_mode>
<expression>
<addressing_mode>
→
valid instruction addressing mode