Question: *** MIPS 1 -- 10 pts - Expected time: 10 mins *** Pseudo-instructions are legal MPS assembly language instructions that do not have a direct

 *** MIPS 1 -- 10 pts - Expected time: 10 mins

*** MIPS 1 -- 10 pts - Expected time: 10 mins *** Pseudo-instructions are legal MPS assembly language instructions that do not have a direct hardware implementation. When you use pseudo-instructions in a MIPS assembly language program, the assembler translates them into equivalent real MIPS instructions. For each of the following Pseduo-instruction or specific functionality, write a few instructions as specified to implement it. For all the instructions, you can safely ignore the branch delay slots. (1-2 pts) addiu $t1,$t2, Oxabcd1234 Function: add a 32-bit constant with the value in Stz, and store the result in $t1 Hint: use three instructions: lui, ori, addu: you can use another register to store the constant first. (2-3pts) abs St1,$t2 Function:ge: the absolute value of the number stored in St2, and store the result in 5:1 Hint: use three instructions: addu, bgez, subu and register $0 (3.2 pts) rol $51, 552,5 Function: relate the value in Ss2 lett by 5 bits, and store the result in $81; "rotate lelt means that the most significar tritis rola.ed to replace the least significant bit (as shown in the following ligure Hint: use three instructions: srl, sil, or, and an extra register. *** MIPS 1 -- 10 pts - Expected time: 10 mins *** Pseudo-instructions are legal MPS assembly language instructions that do not have a direct hardware implementation. When you use pseudo-instructions in a MIPS assembly language program, the assembler translates them into equivalent real MIPS instructions. For each of the following Pseduo-instruction or specific functionality, write a few instructions as specified to implement it. For all the instructions, you can safely ignore the branch delay slots. (1-2 pts) addiu $t1,$t2, Oxabcd1234 Function: add a 32-bit constant with the value in Stz, and store the result in $t1 Hint: use three instructions: lui, ori, addu: you can use another register to store the constant first. (2-3pts) abs St1,$t2 Function:ge: the absolute value of the number stored in St2, and store the result in 5:1 Hint: use three instructions: addu, bgez, subu and register $0 (3.2 pts) rol $51, 552,5 Function: relate the value in Ss2 lett by 5 bits, and store the result in $81; "rotate lelt means that the most significar tritis rola.ed to replace the least significant bit (as shown in the following ligure Hint: use three instructions: srl, sil, or, and an extra register

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!