Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- TASM 2.x / MASM 6.x Assembly Language - <b>& substitute operator operator</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
&                Substitute Operator                                 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.

See Also: <> ! % ;;

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson