title: How to access more than 4 arguments in an ARM assembly function?
body: <p>In my assembly function, there are 6 arguments. When I try to access the fourth and fifth arguments, they are wrong, here is my code on arm cortex-8a</p>
  
  <pre><code>push {r4-r8,lr}
  ldr r6, [sp]
  ldr r7, [sp, #4]
  </code></pre>
  
  <p>I have checked [sp] memory, r4-r8 have wrong value. But, if there are 3 or fewer arguments, [sp] gives correct r4-r8 value. Do I miss something?</p>