for(i=5; i!=0; i++);
~cpp 
        movl    $5, -4(%ebp)
        jmp     .L2
.L3:
        leal    -4(%ebp), %eax
        incl    (%eax)
.L2:
        cmpl    $0, -4(%ebp)
        jne     .L3

for(i=0; i<5; i++);
~cpp 
        movl    $0, -4(%ebp)
        jmp     .L2
.L3:
        leal    -4(%ebp), %eax
        incl    (%eax)
.L2:
        cmpl    $4, -4(%ebp)
        jle     .L3
Retrieved from http://wiki.zeropage.org/wiki.php/C/Assembly/for
last modified 2021-02-07 05:22:47