|
|||||||||||
|
Technical Support On-Line Manuals Assembler Reference |
Assembler ReferenceIF, ELSE, ENDIF, and ELIF
The The The The
where:
Use
Without using
IF A nested structure like this can be nested up to 256 levels deep. You can write the same structure more simply using
IF This structure only adds one to the current nesting depth,
for the Example 3 assembles
the first set of instructions if Example 3. Assembly conditional on a variable being defined
IF :DEF:NEWVERSION
; first set of instructions or directives
ELSE
; alternative set of instructions or directives
ENDIF
Invoking
armasm --predefine "NEWVERSION SETL {TRUE}" test.s
Invoking armasm test.s Example 4 assembles
the first set of instructions if Example 4. Assembly conditional on a variable value
IF NEWVERSION = {TRUE}
; first set of instructions or directives
ELSE
; alternative set of instructions or directives
ENDIF
Invoking
armasm --predefine "NEWVERSION SETL {TRUE}" test.s
Invoking
armasm --predefine "NEWVERSION SETL {FALSE}" test.s
| ||||||||||
|
|||||||||||