PPT Slide
Code Review(using side A only)
MVK .S1 40, A2 ; A2 = 40, loop count
loop: LD .D1 *A5++, A0 ; A0 = A(n)
LD .D1 *A6++, A1 ; A1 = X(n)
MPY .M1 A0, A1, A3 ; A3 = A(n) * X(n)
ADD .L1 A3, A4, A4 ; Y = Y + A3
SUB .L1 A2, 1, A2 ; decrement loop count
[A2] B .S1 loop ; if A2 < > 0, branch
Notes:
This slide shows the commented completed code example we have built.