title: Performing bit shift operations (asr, lsl, lsr)
body: <p>I am trying to calculate by hand these bit shifting operations, but I'm not sure how to go about doing it. The ARM instructions are:</p>
  
  <pre><code>ldr    r0, =0XCAFEBABE
  asr    r0, r0, 9
  </code></pre>
  
  <p>I know that asr means arithmetic shift right and that it is equivalent to dividing or multiplying the number by 2. </p>
  
  <p>Another two that I don't know how to do are:</p>
  
  <pre><code>ldr    r0, =0XCAFEBABE
  lsl    r0, r0, 11
  </code></pre>
  
  <p>For this one, I know how to do a logical shift left, but I'm not sure how it works with shifting 11 bits. </p>
  
  <p>Lastly,</p>
  
  <pre><code>ldr    r0, =0XCAFEBABE
  lsr    r0, r0, 6
  </code></pre>
  
  <p>For this one, I'm not sure what a logical shift right is. </p>