Microsoft KB Archive/39527

From BetaArchive Wiki
Knowledge Base


DOCERR: DUP Is a Reserved Word in MASM

Article ID: 39527

Article Last Modified on 10/17/2003



APPLIES TO

  • Microsoft Macro Assembler 6.15



This article was previously published under Q39527

SUMMARY

The table of reserved words in MASM on Page 69 of the "Microsoft Macro Assembler Programmer's Guide" does not include DUP. DUP is an operator for defining arrays, buffers and other data structures consisting of multiple data objects of the same size. DUP cannot be used as a variable. For example, the following statement allocates the string "Test " five times for a total of 20 bytes:

   DB   5 DUP ("Test ")
                


Additional query words: 5.10

Keywords: KB39527