title: Assembly Segmentation Fault on STR
body: <p>I want to make an array of 0 - 9, but I keep on getting seg fault on str r1, [r0, r1, lsl #2].
  str r1, [r0, r1, lsl #2] is a requirement and I'll have to use that format for str and ldr. Any help is appreciated.</p>
  <pre><code>main:
    push {fp, lr}
    add fp, sp, #4
  
    mov r0, #0x20000000
    mov r1, #0
  
  loop:
    cmp r1, #10
    bge done
  
    str r1, [r0, r1, lsl #2]
    add r1, r1, #1
    b loop
  
  done:
    sub sp, fp, #4
    pop {fp, pc}
  </code></pre>