Question

at ll 7:06 PM 31% 1-Q4H-TI-V14-F... 331 . Intro. to Microcomputers Su a 19.9:45 am Q4H, Page 1/1 sem Alhalabi, EE512 Due Jul
0 0
Add a comment Improve this question Transcribed image text
Answer #1

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:

Add a comment
Know the answer?
Add Answer to:
at ll 7:06 PM 31% 1-Q4H-TI-V14-F... 331 . Intro. to Microcomputers Su a 19.9:45 am Q4H,...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT