Skip to content

Commit

Permalink
added XTA loop pramga based on BANKS, resultDone now copes with BANKS…
Browse files Browse the repository at this point in the history
… > 11
  • Loading branch information
jontaylorxmos committed Sep 15, 2011
1 parent 9cce74e commit f2803dd
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions module_cascading_biquad/src/biquadAsm.S
Expand Up @@ -41,7 +41,8 @@ biquadAsm:
ldc r6, 1
shl r6, r6, r5
shr r6, r6, 1


.xtaloop BANKS
loop:
ldc r4, 5*BANKS // words per filter * BANKS
ldw r9, r1[2]
Expand Down Expand Up @@ -87,7 +88,8 @@ resultFits:

resultDone:
add r8, r8, 1 // Rest bank counter
eq r11, r8, BANKS // Last bank?
ldc r11, BANKS
eq r11, r8, r11 // Last bank?
bf r11, loop // If not, jump, this clears r11

stw r2, r1[1] // store yn1
Expand Down

0 comments on commit f2803dd

Please sign in to comment.