Commit 1b1b942c authored by Martin Kröning's avatar Martin Kröning

Use ret to return from main instead of interrupting to exit program

We are linking against a C library anyways.
parent 9691b4d1
......@@ -64,9 +64,7 @@ main:
call exit
add esp,4
mov eax,1
mov ebx,0
int 0x80
ret
SECTION .data
msg db `Hello World! ebx = ?\n`,0
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment