Slide 27 of 97
Notes:
Returning to our code example, we wanted to make the branch conditional based on A2, so we put in A2 in brackets at the end of the loop, indicating we will continue to execute the loop until A2 is equal to zero.
We will execute this loops 40 times, then fall out of the loop when A2 is equal to zero, and store the final result which is in register A4 to memory using *MemY.