title: How to use an array in RISC-V Assembly
body: <p>I'm learning RISC-V assembly and i need to use array for an exercise that i'm solving; the problem is that the simulator that i'm using(<a href="https://github.com/TheThirdOne/rars" rel="nofollow noreferrer">RARS</a>) gave me an error:<br />
  <code>Error in /home/username/file_name line 8: Runtime exception at 0x00400010: address out of range 0x000003e8.</code></p>
  <p>This is the code i wrote so far:</p>
  <pre><code>.data
  arr: .word 1000
  e0: .word 5
  
  .text
  lw t1, arr # load arr into t1
  lw t2, e0 # Load e0 value into t2
  sw t2, 0(t1) # save t2 value into arr[0]
  </code></pre>
  <p>What i'm doing wrong?</p>