For the below set of equations which was used in some FIR filter design, I am not sure it would work, so needed some explanations. Can some one help?
1. STM #SampleCnt, AR4 ; AR4 = Number of samples to filter
2. BANZ loop,*AR4- ; Repeat till all samples filtered
What I understand is that the contents of the location as indicated by AR4 should be ZERO then it will exit the loop, AR4 is decremented, but the sample count is loaded to AR4, so how does that work?
What am I missing?
Thanks,
Mahesh