DOCERR: DUP Is a Reserved Word in MASM

ID: Q39527


The information in this article applies to:
  • Microsoft Macro Assembler for MS-DOS and OS/2


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 :
Version : MS-DOS:
Platform : MS-DOS
Issue type :


Last Reviewed: January 7, 2000
© 2000 Microsoft Corporation. All rights reserved. Terms of Use.