title: How can I pass parameters in assembler x86 function call?
body: <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.</p>
  <p>I would expect that eax contains 0x08, but this is false and I can not explain why.</p>
  <p>How should I do for fetching my function parameters ?</p>