13.07.2015 Views

TASKING VX-toolset for ARM User Guide

TASKING VX-toolset for ARM User Guide

TASKING VX-toolset for ARM User Guide

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

<strong>TASKING</strong> <strong>VX</strong>-<strong>toolset</strong> <strong>for</strong> <strong>ARM</strong> <strong>User</strong> <strong>Guide</strong>.REPEAT, .ENDREPSyntax[label] .REPEAT expression.....ENDREPDescriptionWith the .REPEAT/.ENDREP directive you can repeat a sequence of assembly source lines.With expressionyou specify the number of times the loop is repeated. If the expression evaluates to a number less thanor equal to 0, the sequence of lines will not be included in the assembler output. The expression resultmust be an absolute integer and cannot contain any <strong>for</strong>ward references (symbols that have not alreadybeen defined). The .REPEAT directive may be nested to any level.If you specify label, it gets the value of the location counter at the start of the directive processing.ExampleIn this example the loop is repeated 3 times. Effectively, the preprocessor repeats the source lines (.DB10) three times, then the assembler assembles the result:.REPEAT 3.DB 10 ; assembly source lines.ENDFORRelated In<strong>for</strong>mation.FOR,.ENDFOR (Repeat sequence of source lines n times)128

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!