**************** Problem 12 lw $t3,16($sp) 1 0 0 0 1 1,1 1 1 0 1,0 1 0 1 1,0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 add $t5,$zero,$zero 0 0 0 0 0 0,0 0 0 0 0,0 0 0 0 0,0 1 1 0 1,0 0 0 0 0,1 0 0 0 0 0 Again: andi $t6,$t3,1 0 0 1 1 0 0,0 1 0 1 1,0 1 1 1 0,0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 add $t5,$t5,$t6 0 0 0 0 0 0,0 1 1 0 1,0 1 1 1 0,0 1 1 0 1,0 0 0 0 0,1 0 0 0 0 0 srl $t3,$t3,1 0 0 0 0 0 0,0 0 0 0 0,0 1 0 1 1,0 1 0 1 1,0 0 0 0 1,0 0 0 0 1 0 bne $t3,$zero,Again 0 0 0 1 0 1,0 1 0 1 1,0 0 0 0 0,1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 0 **************** Problem 16 beq $zero,$zero,LABa # 4 instructions after next addi $v0,$zero,0 LABb lw $t0,0($a0) add $v0,$v0,$t0 addi $a1,$a1,-1 LABa bgtz $a1,LABb # 4 instructions before next addi $a0,$a0,4 jr $gp Program was inteded to add the elements of an array passed in $a0 of size $a1 However, there is a problem with the return! It is *very* important to figure out where the branches goto!