looping a subtraction 10 times in assembly komodo. I would like to loop at least 4 times but I can ony manage to loop infinite times. How do I loop x number of times.
B main
bottles DEFW 4
text DEFB " bottles sitting on a wall",0
ALIGN
main
LDR R0,text
SWI 3
LDR R0,bottles
loop SUB R0,R0,#1
SWI 4
B loop
SWI 2