PPT Slide
1. Add branch instruction (B) and a label
2. Create a loop counter with proper value
3. Add an instruction to decrement the loop counter
4. Make the branch conditional based on the value in the loop counter
Notes:
There are four steps to create a loop.
First, we add a branch instruction and a label. Then a loop counter is created with the proper value. Third an instruction is added to decrement the loop counter within the loop itself. The final step is to make the branch conditional based on the value in the loop counter.