title: Memory access in assembly
body: <p>How many memory accesses are required in the worst case for the following instructions:</p>
  
  <pre><code>add edx, (to_printf-next_i) ; where to_printf and next_i are labels defined in .text
  inc dword [myarray + ebx*4] ; where myarray is a label defined in .data 
  </code></pre>
  
  <p>Is my answer true?</p>
  
  <pre><code>  1. 0 , since we do not access memory here
    2. fetch: 4 bytes for the address : myarray + ebx*4 -&gt; 2 memory accesses in the worst case
       write: 4 bytes because of "dword" -&gt; 2 memory accesses in the worst case
       read? 
  </code></pre>