Name? Local Labels - Texas Instruments TMS320C54x User Manual

Digital signal processors
Hide thumbs Also See for TMS320C54x:
Table of Contents

Advertisement

Example 3–2. name? Local Labels
;*********************************************************
;
First definition of local label 'mylab'
;*********************************************************
nop
mylab?
nop
b mylab?
;*********************************************************
;
Include file has second definition of 'mylab'
;*********************************************************
.copy "a.inc"
;*********************************************************
;Third definition of 'mylab', reset upon exit from include
;*********************************************************
mylab?
nop
b mylab?
;*********************************************************
;
Fourth definition of 'mylab' in macro, macros use
;
different namespace to avoid conflicts
;*********************************************************
mymac
.macro
mylab?
nop
b mylab?
.endm
;*********************************************************
;
Macro invocation
;*********************************************************
mymac
;*********************************************************
;
Reference to third definition of 'mylab', note that
;
definition is not reset by macro invocation nor
;
conflicts with same name defined in macro
;*********************************************************
b mylab?;
*********************************************************
;
Changing section, allowing fifth definition of 'mylab'
;*********************************************************
.sect "Secto_One"
nop
mylab?
.word 0
nop
nop
b mylab?
;*********************************************************
;.newblock directive, allowing sixth definition of 'mylab'
;*********************************************************
.newblock
mylab?
.word 0
nop
nop
b mylab?
Assembler Description
Symbols
3-23

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the TMS320C54x and is the answer not in the manual?

Subscribe to Our Youtube Channel

Table of Contents