DD               Define Doubleword                             MASM Directive
 
  [name]    DD        initialvalue,,,
 
    Allocates and initializes one or more doublewords (4 bytes) of
    storage.
 
       Notes:     The optional name argument causes the assembler to
                  create a variable whose offset value is equal to the
                  current location counter value.  The variable will be of
                  type DWORD.
 
    The initialvalue argument may be any of the following:
 
              *     integer (i.e.  1234)
              *     real number (i.e. 2.3)
              *     1 or 2 character string constant (i.e. 'gh')
              *     encoded real number (i.e. 2F00000r)
              *     constant expression (i.e.  2 * 12)
              *     address expression (i.e. farArrayPtr)
              *     DUP operator (i.e. 10 DUP (?))
              *     question mark (?) (i.e. 0,1,?,2)
 
                  The ? causes the assembler to leave the initial value
                  undefined.  More than 1 initial value can be specified
                  by separating them with commas.
 
                  String variables of type DWORD must not consist of more
                  than 2 characters.  The last character is placed in the
                  low-order byte of the word, and the first character (if
                  there are 2 characters) or 0 (if only 1 character) is
                  placed in the next byte.  Zeros pad the rest of the
                  bytes.

Seealso:



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