Question: Use SPIM to program it. 2. (CLO 5-Assy Lang.)Write a program to do the following: OR the words t and u together and store the
2. (CLO 5-Assy Lang.)Write a program to do the following: OR the words t and u together and store the result in x. XOR v and main: w, storing the result in y. Then add x and y and store the result in z. Multiply x times y times z and output that result to the console. .text Remember: You can only perform mathematical operations orn data that is in registers. t: u: V: w: .data .word 100 .word 54 .word 37 .word 23 word 0 word 0 .word 0 Z: 2. (CLO 5-Assy Lang.)Write a program to do the following: OR the words t and u together and store the result in x. XOR v and main: w, storing the result in y. Then add x and y and store the result in z. Multiply x times y times z and output that result to the console. .text Remember: You can only perform mathematical operations orn data that is in registers. t: u: V: w: .data .word 100 .word 54 .word 37 .word 23 word 0 word 0 .word 0 Z
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
