blob: b6858679bf7d2ec113d7cdc622045dbd5092211a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
global _start
extern main
section .text
_start: mov eax, [esp] ; argc
mov edx, esp
add edx, 4 ; argv
push edx
push eax
call main
add esp, 8
mov ebx, eax ; return value from main
mov eax, 1
int 80h
|