PPT Slide
Notes:
We said before that this example was a sum of products. Right now we're just doing this loop one time. In order to complete the sum of products, we’ll need to execute this code 40 times, so we add a loop.
One method to complete the task would be to literally copy the 4 loop instructions 40 times and then finish with the store instruction, but this method would result in very large code size.
A better method would be to take this section of code and put it into a loop and execute the loop 40 times.