7.83 .rept count

Repeat the sequence of lines between the .rept directive and the next .endr directive count times.

For example, assembling

        .rept   3
        .long   0
        .endr

is equivalent to assembling

        .long   0
        .long   0
        .long   0

A count of zero is allowed, but nothing is generated. Negative counts are not allowed and if encountered will be treated as if they were zero.

Much like for macros, .irp, and .irpc the ‘\+’ sequence can be used to substitute in the number of iterations done so far. In such cases, i.e. when any ‘\+’ character sequence is present between .rept and the corresponding .endr, other backslashes also need escaping by backslashes. Naturally the amount of escaping necessary may increase when using nested constructs.