Answer:
.data
R5: .word 10, 5, 2, 7, 2, 6, 9, 0, 5, 5
.text
main:
jal ClipFilter
li $v0, 10
syscall
ClipFilter:
la $t0, R5 # $t0 points to R5
lw $t1, ($t0) # $t1 has number of digits
lw $t2, 4($t0) # $t2 has max Clipping value
li $t3, 2 # iterator for this list
while: bge $t3, $t1, end
sll $t4, $t3, 2 # $t4 has address of each element in list
lw $t5, R5($t4) # get the digit into $t5
if: ble $t5, $t2, endif
sw $t2, R5($t4)
endif: addi $t3, $t3, 1
b while
end:
at ll 7:06 PM 31% 1-Q4H-TI-V14-F... 331 . Intro. to Microcomputers Su a 19.9:45 am Q4H,...