Assembly Language Help (alang.hlp) (Table of Contents; Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
Repeat Declaration Operator
 Example                                   Up Contents Index Back
────────────────────────────────────────────────────────────────────────────
 
  Syntax:   count DUP (initialvalue [,initialvalue]...)
 
  See also: Data Declaration Directives, Undeclared Data Operator (?)
 
  Description:
 
     Specifies <count> declarations of <initialvalue>. You can define
     arrays, buffers, and other data structures consisting of multiple
     data objects of the same size with the DUP operator. The
     <initialvalue> parameters must be inside parentheses. This
     operator can be used with data definition directives.
 
     The <count> parameter is the number of declarations of
     <initialvalue>. This parameter cannot be negative or
     forward-referenced. The <initialvalue> parameter is either the
     undefined data symbol (?), a string, a constant expression, or
     another DUP operator. The value or values of <initialvalue> are
     evaluated once before duplication. Separate multiple initial
     values with commas.
                                    -♦-