
;   for ( int i=0; i < 10; i++ ) {
;   using eax for i
        xor     eax, eax    ; i=0
top_of_for:
        cmp     eax, 10     ; test the first and every iteration
        jnl     end_of_for
;
;       Do whatever
;
        inc     eax         ; i++
        jmp     top_of_for
;    }
end_of_for:

