&                Substitute Operator                            MASM Operator
 
    &dummyparameter
 or
    dummyparameter&
 
    Causes the assembler to replace dummyparameter with dummyparameter's
    actual parameter value when used in the text of a macro definition.
 
       Notes:     The best way this operator can be defined is by looking
                  at an example:
 
  -------------------------------- Example ---------------------------------
 
           newlabel    MACRO    x
           label&x     db       &x
           ENDM
 
           newlabel    0
           newlabel    1
 
    If NEWLABEL is a macro defined above and 2 calls are made to it, one
    with the parameter 0 and the other with 1, the result would be
 
           label0      db   0
           label1      db   1
 
    Note how the dummy parameter's value was substituted for &x.

Seealso:



This page last updated on Fri Nov 30 10:49:50 MSK 2001
Copyright © 1992-2001, Vitaly Filatov, Moscow, Russia
Webmaster