title: Looping with a DEC
body: <p>I am having an issue with a MASM32 program. I am trying to get this code to work:</p>
  
  <pre><code>.DATA
  alfa dword 9
  
  .CODE
  start:
  
  MOV ecx, alfa
  MOV eax, 0
  
  L1: ADD eax, ecx
  DEC ecx
  LOOP L1
  CALL WRITEINT
  
  exit
  END start
  </code></pre>
  
  <p>I have found that the problem is only within the loop, everything else works fine. Can some please help me get the loop to work correctly, it does not return a value and doesn't exit. Is this supposed to happen? Thank you all in advance!</p>