title: executing assembly code in c
body: <p>I want to know if there is a way of calling in a .c assembly code?
  I want to put this code in my .c file</p>
  
  <p>The assembly code i want to execute in .c file to return the address</p>
  
  <pre><code>1. mov eax, 0x2d
  2. mov ebx, 0
  3. int 0x80
  </code></pre>
  
  <p>I know the answer is put eax.</p>
  
  <p>This is the part of .c file:</p>
  
  <pre><code>1. void function(void)
  2. {
  3. void *sp;
  4. sp = eax;
  5. fprintf(stderr, "system break:   %p\n", sp);
  6. }
  </code></pre>
  
  <p>How can I do it?</p>