DUPF

Duplicate sequence in loop.

[ label] DUPFdummy,[start],end[,increment]

.

.

ENDM

Remarks

The block of source statements defined by the DUPF and ENDM directives are repeated in general ( end - start) + 1 times when the increment is 1. The start is the starting value for the loop index; end represents the final value. The increment is the increment for the loop index; it defaults to 1 if omitted (as does the start value). The dummy parameter holds the loop index value and may be used within the body of instructions.

Example

If the input source file contained the following statements,

DUPFNUM,0,3

MOVE#1,R\NUM

ENDM

then the assembled source listing would show:

MOVE#1,R0

MOVE#1,R1

MOVE#1,R2

MOVE#1,R3

See also

DUP

DUPA

DUPC

ENDM

MACRO