global _start section .text _start: mov ebx, 1 ; start at 1 mov ecx, 4 ; num iterations label: add ebx, ebx ; ebx += ebx dec ecx ; ecx -= 1 cmp ecx, 0 ; compare ecx with 0 jg label ; jump if greater than label