Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- global _start
- global sys_write
- extern main
- section .text
- _start: call main
- mov ebx, eax ; now call _exit
- mov eax, 1
- int 80h
- sys_write: mov eax, 4
- push ebp
- mov ebp, esp
- push ebx
- mov ebx, [ebp+8]
- mov ecx, [ebp+12]
- mov edx, [ebp+16]
- int 80h
- mov esp, ebp
- pop ebp
- ret
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement