.pos 0 irmovl stack, %esp jmp main # f(long n, long * t) f: mrmovl 4(%esp),%ecx # n mrmovl 8(%esp),%eax # t loop: isubl 1, %ecx jl end mrmovl (%eax),%edx # load *t iaddl 1, %edx # inc rmmovl %edx, (%eax) # store *t iaddl 4,%eax # t++ jmp loop end: ret # main main: irmovl t, %eax pushl %eax # empiler 2eme arg (adresse t) mrmovl n, %eax pushl %eax # empiler 1er arg (valeur n) call f iaddl 8,%esp # depiler les args halt .pos 0x100 n: .long 4 t: .long 1 .long 2 .long 3 .long 4 .pos 0x200 stack: