Assembly 32 bit Programming Control Tricks by: ev1lut10n (A Chinese Man who lives in Indonesia) #Looping method there are many tehnics for looping in asm, here's a method for looping =============== while: cmp eax,0 ; here we compare eax with 0 je keluar ; if ecx equal to 0 we do a jump to macro keluar ;put any asm instruction here inc eax ; here we increment eax jmp while ; rejump to while here ================= ok here we start with real c0de: ====== section .data tes db 'ev1lut10n\n',10; global _start _start: jmp short forking forking: mov eax,2 int 80h set_our_konter: mov ecx,2 mov edi,0 while: mov edx,11 mov edi,ecx mov ecx,tes call (makro_writeln) mov ecx,edi dec ecx jnz while keluar: push byte 0x01 pop eax int 80h makro_writeln: mov ebx,1 mov eax,4 int 80h ret ========= ok let's see this one at first we set the counter set_our_konter: mov ecx,2 at the end of while we put dec ecx jnz while where we decrement ecx and while its not zero we still do a jmp to while label =========== #Nested method for nested there are many instruction we may use ex: jnz means jump if not zero je means jump if equal jnc means jump if not carry and so on from above sample we decement ecx and do a jump while its not zero dec ecx jnz while