>>169
こんな感じかな?
レジスタの割り当ては適当。

movl tmp,%%ebx
movl count,%%ecx
#APP
call %%ebx
addl %%ecx,%%esp
movl %%eax,%%ebx
#NO_APP
movl %%ebx,tmp