Check out example codes for "for loop in assembly". It will help you in understanding the concepts better.

Code Example 1

xor cx,cx   ; cx-register is the counter, set to 0
loop1   nop         ; Whatever you wanna do goes here, should not change cx
        inc cx      ; Increment
        cmp cx,3    ; Compare cx to the limit
        jle loop1   ; Loop while less or equal

Learn ReactJs, React Native from akashmittal.com