

Task

Demonstrate a   for-loop   where the step-value is greater than one.



Related tasks

   Loop over multiple arrays simultaneously
   Loops/Break
   Loops/Continue
   Loops/Do-while
   Loops/Downward for
   Loops/For
   Loops/For with a specified step
   Loops/Foreach
   Loops/Increment loop index within loop body
   Loops/Infinite
   Loops/N plus one half
   Loops/Nested
   Loops/While
   Loops/with multiple ranges
   Loops/Wrong ranges


                               0000  0000     1 .entry	main,0
                            50   D4  0002     2 	clrf	r0				;init to 0.0
                                     0004     3 loop:
                                 01  0004     4 	nop					;do nothing
             FFF9 50   0A   3E   4F  0005     5 	acbf	#112.0, #1.25, r0, loop		;limit, step
                                     000B     6 
                                 04  000B     7 	ret
                                     000C     8 .end	main