Tells the assembler to repeatedly expand a series of statements described between this directive and the .endm directive the number of times equivalent to the value of the expression specified in the operand field.
The .rept directive tells the assembler to repeatedly expand a series of statements described between this directive and the .endm directive (called the REPT-ENDM block) the number of times equivalent to the value of the expression specified in the operand field. |
Use the .rept and .endm directives to describe a series of statements repeatedly in a source program. |
If the .exitm directive appears in the REPT-ENDM block, subsequent expansion of the REPT-ENDM block is terminated at that location. |
If the result of evaluating the expression is negative, the assembler outputs the message then stops assembling. |