section .data section .text global main main: mov ebp, esp sub esp, 32 mov edx, 2 mov ecx, esp mov ebx, 0 mov eax, 3 int 0x80 mov eax, [esp] add eax, 1 mov [esp], eax mov edx, 1 mov ecx, esp mov ebx, 1 mov eax, 4 int 0x80 add esp, 32