title: How do I traverse a matrix in assembly?
body: <p>I did a matrix 3x3 with random numberns in C and now i want to verify the pairs of this matrix in assembly calling the function count_pairs_matrix(int **m, int y, int k). </p>
  
  <p>y --> are the number of rows</p>
  
  <p>k --> are the number of columns</p>
  
  <p>I'm doing this:</p>
  
  <pre><code>movl 8(%ebp), %eax  #pointer m
  movl 12(%ebp), %ebx #k
  movl 16(%ebp), %ecx #y
  movl $0, %esi
  
  (..)
  movl (%eax,%esi,4), %edx  &lt;-- the problem is here, the register edx have the address but not the number of that position of the matrix
  </code></pre>