title: Divide by 10 in assembly not giving correct result
body: <p>I was trying to implement division by 10 in arm assembly. I followed the method mentioned in the first answer to the question at
  <a href="https://stackoverflow.com/questions/19844575/arm-division-how-to-do-it">ARM DIVISION HOW TO DO IT?</a></p>
  
  <p>This is my code</p>
  
  <pre><code>MOV     r2, #10         
  LDR     r3,=0x1999999A   ; 1999999A == (2^32 / 10) + 1
  UMULL   r9,r3,r5,r3    ;divide an integer value in r5 by 10   
  MOV     r6, r9,LSR r2  ; r6 has the quotient
  </code></pre>
  
  <p>But this code is not giving the correct result.For example, If I give 0x0000000B in r5, after these steps value in r6 is 0x00066666.</p>
  
  <p>Am I doing anything wrong?</p>