How can i pass parameters in assembler x86 function call : <p>Look at this assembler code. It is designed for 32 bits x86 and will be compiled by nasm</p>

<pre><code>   ...
   my_function:
        pop %eax
        ...
        ret


   main:
       push 0x08
       call my_function
</code></pre>

<p>I have learned a long time ago that we can use stack for passing parameters between main program and functions.
I would expect that eax contains 0x08, but this is false and i can not explain why.
How should i do for fetching my function parameters ?</p>
