.global _start .extern main .extern exit _start: call main push %eax call _exit # this should never be reached anyway! .wait: hlt jmp .wait