title: How do you point to a value in an array in ARM assembly?
body: <p>So I need to point to a specific value in the array.  I don't know how to get the address though, so for example what I need to do (in C) is this call a function like this,</p>
  
  <pre><code>int p = 5;
  cqs(&amp;a[0], p);
  cqs(&amp;a[p+1], n-p-1);
  </code></pre>
  
  <p>How would I point to the specific index in ARM?  I've tried </p>
  
  <pre><code>ldr r6, [r0, r3, asl #2]
  ldr r0, =r6
  bl cqs
  </code></pre>
  
  <p>but the compiler doesn't like that.</p>
  
  <p>Can someone help?</p>