Example 2. Local Labels of the Form name?

**************************************************************** ** First definition of local label mylab ** **************************************************************** nop mylab? nop B mylab? nop 5 **************************************************************** ** Include file has second definition of mylab ** **************************************************************** .copy "a.inc" **************************************************************** ** Third definition of mylab, reset upon exit from .include ** **************************************************************** mylab? nop B mylab? nop 5 **************************************************************** ** Fourth definition of mylab in macro, macros use different ** ** namespace to avoid conflicts ** **************************************************************** mymac .macro mylab? nop B mylab? nop 5 .endm **************************************************************** ** Macro invocation ** **************************************************************** mymac **************************************************************** ** Reference to third definition of mylab. Definition is not ** ** reset by macro invocation. ** **************************************************************** B mylab? nop 5 **************************************************************** ** Changing section, allowing fifth definition of mylab ** **************************************************************** .sect "Sect_One" nop mylab? .word 0 nop nop B mylab? nop 5 **************************************************************** ** The .newblock directive allows sixth definition of mylab ** **************************************************************** .newblock mylab? .word 0 nop nop B mylab? nop 5

For more information about using labels in macros see Section 6.6.