Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Write a MIPS program that checks whether two integers are exactly a factor of 2

ID: 3882662 • Letter: W

Question

Write a MIPS program that checks whether two integers are exactly a factor of 2 apart from this code. It is not recommended that you use any of the mult or div instructions. You can solve the problem without them.

. data error string:asciiz "ERROR: not enough arguments n" newline: .asciiz "" . text ma1n: li Svo, 5 syscall move to, vO li Svo, 5 syscall move tl, svo # Input integers are stored in sto and Stl # Finish the assembly program , # such that at the end of the program , # #30 holds the integer 1 if St1 IS 2x larger than sto, #-1 if st1 is 2x smaller than sto, and 7 otherwise. # YOUR SOLI HERE # exit cleanly syscall

Explanation / Answer

Hi here your code

code :

Thanks

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote