[<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
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.

See Also: DB DW DQ DT DUP
This page created by ng2html v1.05, the Norton guide to HTML conversion utility. Written by Dave Pearson