DUPA

Duplicate sequence with arguments.

  [
  label]        
  DUPA      
  dummy,arg[,arg,...,arg]  .  . ENDM 
Remarks

The block of source statements defined by the DUPA and ENDM directives is repeated for each argument. For each repetition, every occurrence of the dummy parameter within the block is replaced with each succeeding argument string. If the argument string is a null, then the block is repeated with each occurrence of the dummy parameter removed. If an argument includes an embedded blank or other Assembler-significant character, it must be enclosed within single quotes.

If label is present, it is assigned the value of the runtime location counter at the start of the DUPA directive processing.

Example

If the input source file contained the following statements,

DUPA VALUE,12,32,34

DC VALUE

ENDM

then the assembled source listing would show

DC 12

DC 32

DC 34

See also

DUP

DUPC

DUPF

ENDM

MACRO