title: Shift right and Add in one command
body: <p>I am learning assembly language for ARM Cortex and I have the following problem:</p>
  
  <blockquote>
    <p>Write one line of assembly instruction for the following calculation:
    Apply Arithmetic Shift Right on the content of R2, then add the
    contents of R1 and R2 and store the result in R0.</p>
  </blockquote>
  
  <p>I understand the Arithmetic Shift Right as:</p>
  
  <p><code>ASR R0, R2, #9</code></p>
  
  <p>And to do an add is simply:</p>
  
  <p><code>ADD R0, R1, R2</code></p>
  
  <p>But i am unsure how to combine these into one command. 
  So far I have come up with the following from an example i saw that looked as if they were doing two commands on one line in a similar way:</p>
  
  <p><code>ASR R0, R2, #9, [ADD R1, R2]</code></p>
  
  <p>I know this is probably wrong, so can anyone explain to me how this should be done?</p>