Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Assembly Language - <b>dq define quadword masm directive</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
DQ               Define Quadword                               MASM Directive

  [name]    DQ        initialvalue,,,

    Allocates and initializes one or more quadwords (8 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 QWORD.

    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. 2F0000000000000r)
              *     constant expression (i.e.  2 * 12)
              *     DUP operator (i.e. 10 DUP (?))
              *     question mark (?) (i.e. 0,1,?,2)

                  The ? causes the assembler to leave the initial value
                  undefined.  To specify more than 1 initial value,
                  separate them with commas.

                  String variables of type QWORD 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 DD DT DUP

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson