DUP              Duplicate Occurrences                          MASM Operator
 
  count DUP (initialvalue,,,)
 
    Used with DB, DW, DD, DQ, and DT to specify multiple instances of
    initial values.
 
       Notes:     InitialValue can be one or more items, each separated by
                  a comma.  Each initialValue can be any expression that
                  evaluates into an integer value, a character constant,
                  or another DUP operator.  Note that initialValue MUST be
                  enclosed within parenthesis.
 
       Count is the number of times to duplicate the initial values.
 
  -------------------------------- Example ---------------------------------
 
   DB   200  DUP (1)           ;Define 200 bytes initialized to 1
   DB   50   DUP (1,0)         ;Define 100 bytes of the pattern 1,0,1,0,etc.
   DB   2    DUP (3 DUP (1))   ;Define 6 bytes initialized to 1

Seealso:



This page last updated on Fri Nov 30 10:49:50 MSK 2001
Copyright © 1992-2001, Vitaly Filatov, Moscow, Russia
Webmaster