title: While, Do While, For loops in Assembly Language (emu8086)
body: <p>I want to convert simple loops in high-level languages into assembly language (for emu8086) say, I have this code:</p>
  
  <pre><code> for(int x = 0; x&lt;=3; x++)
   {
    //Do something!
   }
  </code></pre>
  
  <p>or</p>
  
  <pre><code> int x=1;
   do{
   //Do something!
   }
   while(x==1)
  </code></pre>
  
  <p>or</p>
  
  <pre><code> while(x==1){
   //Do something
   }
  </code></pre>
  
  <p>How do I do this in emu8086? </p>