我正在学习RISC-V汇编,并需要在解决一个练习时使用数组;问题是我正在使用的模拟器(RARS)出现了错误:
我做错了什么?
Error in /home/username/file_name line 8: Runtime exception at 0x00400010: address out of range 0x000003e8.
这是我到目前为止写的代码:
.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]
我做错了什么?