MIPS assembly

Write your question here.
I'm coding MIPS on MARS 4.0.1 and I'm trying to add letter '1' into an array but it doesn't work. Here is my code. Can somebody help me, please :(

.data
time: .space 12

.text
main:
la $a0, time
li $t0, 49
sb $t0, 0($a0)
addi $a0, $a0, 1
sb $zero, 0($a0)
li $v0, 4
syscall

li $v0, 10
syscall
Hmm. Are the delay slots okay? Do you have the operands of sb set right or should they be reversed?
Topic archived. No new replies allowed.