.data
.word 5
.word 4
.word 3
.word 2
.word 1
.text
.globl main
addi $t5, $zero, 0x10010000 #base address - 0x10010000
main:
Loop:
addi $t0, $t0, 0
bge $t0, 5, Exit
sll $t1,$t1,2
add $t2, $t5, $t1
lw $t3, 0($t2)
sll $t3,$t3,1
sw $s0, 0($t3)
addi $t0,$t0,1
j Loop
Exit:
The error I discovered was in sw $s0, 0($t3). The exception is the following: store address not aligned on word boundary 0x0000000a. Based on this error, it looks like there is no word alignment. What is the best way to fix the error?
Your feedback (or constructive criticism) is greatly appreciated.
User contributions licensed under CC BY-SA 3.0