Registrations are now open. Join us today!
There is still a lot of work to do on the wiki yet! More information about editing can be found here.
Already have an account?

Microsoft KB Archive/106403

From BetaArchive Wiki
Knowledge Base

FIX: DUP Operator Must Be Preceded by White Space

Article ID: 106403

Article Last Modified on 10/13/2003


  • Microsoft Macro Assembler 6.0 Standard Edition
  • Microsoft Macro Assembler 6.0a
  • Microsoft Macro Assembler 6.0b

This article was previously published under Q106403


The DUP operator must be preceded by white space. The number of items and the DUP operator must be separated by spaces or tabs. In MASM 6.0, no error message is given, but space for only one data item is allocated if the white space is missing. MASM 6.1 and later issue the error message:

error A2206: missing operator in expression


Microsoft has confirmed this to be a problem in MASM versions 6.0x. The problem was corrected in MASM 6.1.

Sample Code

; Assemble options needed: /Fl
; View the listing file to see the error in MASM 6.0 for data item b


a        db 4 dup(0)
size_a   db SIZEOF a
b        db 4dup(?)    ; A2206 here in MASM 6.1
size_b   db SIZEOF b

   mov   ax,4C00H
   int   21H    ;Terminate Process
END start

Additional query words: 6.00 6.00a 6.00b buglist6.00 buglist6.00a buglist6.00b fixlist6.10

Keywords: kbfix KB106403