main: # label = 0x00400000 + 4*i #hello baseR: add $t0, $t1, $t2 addu $t0, $t1, $t7 and $t2, $t3, $s1 jr $ra nor $t0, $t3, $t4 or $t3, $t1, $t0 slt $s3, $s1, $t0 sltu $t4, $t0, $t2 sll $s0, $t1, 2 srl $t2, $t3, 4 sub $t4, $t0, $t2 subu $t0, $t1, $t4 baseI: addi $t1, $t2, 3 #5 label addiu $t2, $s1, 5 #6ijasidiasfih andi $s1, $t2, -5 #7 beq $t1, $t2, baseJ #8 bne $t1, $t2, exit #9 lbu $s1, 2($t2) #10 lhu $s1, 2($t2) #11 lui $t1, 10 #12 lw $s0, 3($t1) #13 sw $s1, 1($s0) #14 baseJ: j exit #15 jump to label jal baseR #16 jump to label putString: #li $v0, 8 exit: #li $v0, 10 #17 label syscall #18