title: How to create nested loops in x86 assembly language
body: <p>Is it possible to create nested loops in x86 assembly language?</p>
  
  <p>I'd like to translate this psedocode into correct x86 assembly code (using <a href="http://en.wikipedia.org/wiki/Microsoft_Macro_Assembler" rel="noreferrer">MASM</a> syntax), but I'm not sure how to initialize each loop counter here. Is it even possible to declare local variables in x86 assembly (as in most other programming languages)?</p>
  
  <pre><code>for (var i = 0; i &lt; 10; i++){
      for(var j = 0; j &lt; 10; j++){
          for(var k = 0; k &lt; 10; k++){
              mov eax, i + j + k;
          }
      }
  }
  </code></pre>