[<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
DT               Define Ten-byte Unit                          MASM Directive

  [name]    DT        initialvalue,,,

    Allocates and initializes one or more ten-byte units 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 TBYTE.

    The initialvalue argument may be any of the following:

              *     integer expression (i.e.  12334d)
              *     packed decimal (i.e. 0123456789)
              *     1 or 2 character string constant (i.e. 'gh')
              *     encoded real number (i.e. 2F0000000000000r)
              *     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 TBYTE 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.

                  Constants with decimal digits are treated as packed
                  decimal numbers, rather than integers.  In order to
                  specify a constant as an integer with DT, append a
                  letter specifying the number system to use to the end of
                  the number.  For example, append 'D' for a decimal
                  number or 'H' for a hexadecimal number.

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