title: Assembly x86 pointer to array
body: <p>I am just playing around to understand how pointers in assembly language work, but I cannot find out how to make a pointer to array and later use it to print array.
  So far I have:</p>
  
  <pre><code>section .data
  
      output db "%d",10,0
      array db 1, 2, 3, 4, 5     ;array of dwords
      sizeOf db 5                ;size of array
  </code></pre>
  
  <p>I somehow assume that I can make a pointer to array with the following code:</p>
  
  <pre><code>push array
  mov esi, [esp]
  </code></pre>
  
  <p>Is this the way pointer to array is made? And how can I use it to print the whole array out?</p>