Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Assembly Language - <b>local create symbol for use in macro masm directive</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
LOCAL            Create Symbol for Use in Macro                MASM Directive

  LOCAL     dummyname,,,

    Creates unique symbol names for use in macros.

       Notes:     When the macro is expanded, dummyname is replaced by a
                  symbol of the form:

                       ??number

                  where number is a hexadecimal number in the range of 0
                  to FFFFh.  Do not specify other symbols of this type,
                  since the macro will be generating these types of labels
                  and the repetition of a label could cause an error.

                  LOCAL can be used only in macros, and a LOCAL directive
                  must precede all other statements (including comments)
                  in a macro definition.

                  This directive is typically used in macros that use
                  labels.  If a macro is called multiple times and the
                  same label is used for all calls, then an error will
                  occur since the label has been declared multiple times.
                  Use the LOCAL directive to avoid this problem by making
                  all labels LOCAL.

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