... set up loop count in Rn ... BR 9000$ 1000$: ... body of loop ... 9000$: SOBGEQ Rn, 1000$ Why branch and use SOBGEQ instead of SOBGTR? So that, if the loop count is initially zero, the branch falls right through without executing the body of the loop.