
.align
Align to a 32-Word Boundary
6-14
Syntax
.align
Description
The .align directive aligns the current section to a 32-word boundary, filling the
hole with NOPs. If the hole is greater than 2 words, .align places a branch to
the newly-aligned address. This directive is useful for placing critical code
blocks on the boundaries that best use the cache resources of the ’C3x archi-
tecture.
Example
Here is an example of the .align directive.
;
; Slightly modified FIR filter example from C3x Users Guide
;––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––
.start ”ISR”,0x809808 ; Create an output section which is
.sect ”ISR” ; not on a 32-word boundary for demo
.align ;
FIRLENG .set 64 ; Size of FIR filter
Critical ldp @FIRCOEF ;
ldi @FIRCOEF,AR0 ; AR0=address of h(N–1)
ldi @FIRDATA,AR1 ; AR1=address of x(n–(N–1))
mpyf3 *AR0++(1),*AR1++(1)%,R1 ;
ldf 0.0,R2 ;
ldi FIRLENG–2,RC ; Be sure to unroll length by 2
rptb FIR ; Begin block repeat
mpyf3 *AR0++(1),*AR1++(1)%,R1 ;
FIR || addf3 R0,R1,R2 ;
b $ ; Done, result is in R2
FIRCOEF
.word 0x809900 ; Address for coefficient storage
FIRDATA
.word 0x809A00 ; Address for input data storage
Содержание TMS320C3 Series
Страница 1: ...TMS320C3x DSP Starter Kit User s Guide...
Страница 18: ...1 4...
Страница 28: ...2 10...
Страница 82: ...5 18...
Страница 140: ...Communications Kernel Source Code A 12...
Страница 145: ...Schematics B 5 DSK Circuit Board Dimensions and Schematic Diagrams...
Страница 146: ...Schematics B 6...
Страница 147: ...Schematics B 7 DSK Circuit Board Dimensions and Schematic Diagrams...
Страница 148: ...Schematics B 8...
Страница 149: ...Schematics B 9 DSK Circuit Board Dimensions and Schematic Diagrams...
Страница 150: ...Schematics B 10...
Страница 154: ...B 14...
Страница 160: ...C 6...
Страница 166: ...Index 6...