Texas Instruments TMS320C54x User Manual page 175

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

Advertisement

.union/.endunion/.tag
Example 1
1
2
3
0000
4
0000
5
0000
6
0002
7
8 000000
9
10
11 000000 0000–
Example 2
1
2
3
0000
4
0000
5
0000
6
0002
7
4-92
Declare Union Types
.global employid
xample
.union
ival
.word
fval
.float
sval
.string
real_len
.endunion
.bss
employid, real_len
employid
.tag
xample
ADD
employid.fval, A
.union
x
.long
y
.float
z
.word
size_u
.endunion
; utag
; member1 = int
; member2 = float
; member3 = string
; real_len = 2
;allocate memory
; name an instance
; access union element
; utag
; member1 = long
; member2 = float
; member3 = word
; real_len = 2

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