I don't understand how
pop eax
jmp eax
allow me to quit the function.
Here is the full code :
global _start
_start:
call func
mov eax, 1
int 0x80
func:
mov ebx, 42
pop eax
jmp eax
The global idea of this code is to have the exit code set to 42.
I guess there is something with the stack I don't understand