title: Arm assembly language rotate right with register
body: <p>Can anyone help me explain this code. I don't understand these codes. Specially What does it mean? <strong>rotate R0 by R2 register</strong>. I tried to understand but i didn't get it. </p>
  
  <p>The question is:</p>
  
  <p>Provide R0, R1, R2 contents after running the following code segment.</p>
  
  <p>This is my code:</p>
  
  <pre><code>MOV R0, #0x0000FF00
  MOV R2, #0xFF
  MOV R1, R0, ROR R2
  BIC R0, R1, R0
  ADD R0, R0, R2
  </code></pre>
  
  <hr>
  
  <p>The result will goes here.</p>
  
  <pre><code>R0=........,
  R1=.........., 
  R2= ..........
  </code></pre>
  
  <p>How arm shift works?</p>