title: Unsigned Integer Division ARM Cortex-M0+ Assembly
body: <p>Hi all I am new here but anyway here is my problem:
  I am trying to write a subroutine for unsigned integer division in Assembly but I really cannot figure it out. If anyone could show me how to do it, that would be great. </p>
  
  <p>I will call the subroutine DIVU. R1 will be the dividend. The divisor will be in R0. The quotient is going to be in RO and the remained in R1.</p>
  
  <p>Basically, I am trying to make something like this: R1÷R0=R0remainderR1</p>
  
  <p>If R0=0, I want to leave the input parameters unchanged and set the C flag when it returns. Otherwise, I just want to clear the C flag. I do not want to change any other registers' values after returning.</p>
  
  <p>Thanks in advance for the help! </p>