title: assign a pointer to a pointer in assembly and c
body: <p>In a C method, given the only local variable int i (uninitialized), that i'd like to store in the register %ecx, and given the following struct located in %ebp+8:</p>
  
  <pre><code>typedef struct {
    char c;
    int k;
    int *m;
  } S1;
  </code></pre>
  
  <p>how do I translate into assembly (at&amp;t syntax) the following code:</p>
  
  <pre><code>i=*(a.m);
  i=i+a.k;
  </code></pre>
  
  <p>Thanks!</p>