Question: You need to submit two *.asm assembly programs. 1. Please write an assembly programusing QtSpim MIPS assembly language simulator to do following operations: 1. Put
You need to submit two *.asm assembly programs.
1. Please write an assembly programusing QtSpim MIPS assembly language simulator to do following operations:
1. Put the bit pattern 0x35353535 in register $8 (use only $8 and three instructions).
2. Now shift the pattern left one position into register $9 (leave $8 unchanged).
3. Put the bit-wise OR of $8 and $9 into register $10.
4. Put the bit-wise AND of $8 and $9 into register $11.
5. Put the bit-wise XOR of $8 and $9 into register $12.
6. Reflect each bit of the pattern in $12 and put the result into register $13
7. Move the bit pattern in register $13 to register $14
2. Please write an assembly programusing QtSpim MIPS assembly language simulator to do following operations:
Put the bit pattern 0x0000FACE into register $8. Now, using only register-to-register logic and shift instructions, rearrange the bit pattern so that $9 gets the bit pattern 0x0000CAFE.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
