Code:
.data
array: .word 0
.word 0
.word 0
.word 0
.word 0
.text
.globl __start
__start:
la $s0, array
li $v0, 5
syscall
sw $v0, 0($s0)
li $v0, 5
syscall
sw $v0, 1($s0)
li $v0, 5
syscall
sw $v0, 2($s0)
li $v0, 5
syscall
sw $v0, 3($s0)
li $v0, 5
syscall
sw $v0, 4($s0)
I keep getting the message "unaligned address in store: 0x10010001" everytime it tries to store the 2nd integer I enter. I can use "usw" instead of "sw" but I think I'm doing something wrong somewhere.
Last edited: