Duplicate sequence with characters.
[label] DUPC dummy,string
.
.
ENDM
The block of source statements defined by the DUPC and ENDM directives are repeated for each character of string. For each repetition, every occurrence of the dummy parameter within the block is replaced with each succeeding character in the string. If the string is null, then the block is skipped.
If label is present, it is assigned the value of the runtime location counter at the start of the DUPC directive processing.
If the input source file contained the following statements,
DUPC VALUE,'123'
DC VALUE
ENDM
then the assembled source listing would show:
DC 1
DC 2
DC 3