Your comments don't match the function in your second program named "pseudoinstructions." See below for a possible revision. loop: lw $t3, 0($t0) # load first element of array into temp reg 3 add $t2, $t2, $t3 # update sum addi $t0, $t0, 4 # point to next element in array addi $t1, $t1, -1 # decrement loop count bne $t1, $zero, loop # check if there are any loops remaining ble $t2, $0, else # if the sum > 0, store sum in $s0 move $s0, $t2 j exit else: move $s1, $t2 # else store sum in $s1
Great tutorial, John!
Thank you for this! A great primer.
excellent video, thanks
Your video helped me.Gj!
Your comments don't match the function in your second program named "pseudoinstructions." See below for a possible revision.
loop: lw $t3, 0($t0) # load first element of array into temp reg 3
add $t2, $t2, $t3 # update sum
addi $t0, $t0, 4 # point to next element in array
addi $t1, $t1, -1 # decrement loop count
bne $t1, $zero, loop # check if there are any loops remaining
ble $t2, $0, else # if the sum > 0, store sum in $s0
move $s0, $t2
j exit
else: move $s1, $t2 # else store sum in $s1
So helpful!
The audio goes full Charlie Brown at 3:02. Get a real mic.
thnx )))
Play League of Legends. XD. Good video.
thanks for the tutorial!