Download AMCA User Manual
Transcript
AMCA User Manual : : endfor 5.28.2 Description The lines between the FOR and the ENDFOR are assembled as long as <iterator> evaluates in the range of <expr1> to <expr2>. A FOR loop can be repeated a maximum of 256 times. 5.28.3 Example for I=0 to 5 nop endfor 5.28.4 See Also ENDFOR 5.29 IF – Begin Conditionally Assembled Code Block 5.29.1 Syntax if <expr> 5.29.2 Description Begin execution of a conditional assembly block. If <expr> evaluates to true, the code immediately following the IF will assemble. Otherwise, subsequent code is skipped until an ELSE directive or an ENDIF directive is encountered. An expression that evaluates to zero is considered logically FALSE. An expression that evaluates to any other value is considered logically TRUE. The IF and WHILE directives operate on the logical value of an expression. A relational TRUE expression is guaranteed to return a nonzero value, FALSE a value of zero. 5.29.3 Example if version == 100; check current version : ;executable cod : ;executable cod else : : ;executable cod ;executable cod endif 29 Rev 2.2 2004/2/12