Iterating through a vector in x86?
<p>So, we're beginning to do small things in x86 but I can't grasp it at all. We have this:</p>

<pre><code>  .Data
  frequency DW 0, 260, 300, 330, 350, 390, 440, 500, 520, 590, 660, 700
</code></pre>

<p>I have to iterate through it, seems simple for me, but:</p>

<pre><code>  mov EAX, frequency  
  mov ECX, 0  // as a counter
</code></pre>

<p>Isn't correct, am I right? I was thinking about moving to <code>EAX</code> the address of frequency, but then again doesn't seem right to me.<br>
Anyone can help me know how to do a simple [ <code>if != 700</code> ] loop?<br>
Don't really care about the loop, just want to know how to get the elements on "frequency" into a register and then keep getting the next one.</p>