title: Converting ARM to C
body: <p>Given, for example, the following ARM assembly code, are there any straightforward ways to convert it directly to C, using whatever appropriate variable names?</p>
  
  <pre><code>      ADD $2  $0  #9
        ADD $3  $0  #3
        ADD $1  $0  $0
  loop: ADD $1  $1  #1
        ADD $3  $0  $3, LSL #1
        SUB $2  $2  $1
        CMP $2  $1  
        BNE loop
  </code></pre>
  
  <p>Also, as I'm still learning ARM, how many times will the loop execute say, SUB or ADD?  Are there straightforward ways to determine this?</p>
  
  <p>Thanks for the help!  Any other insight not particularly aimed at answering the question would also be great.</p>