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

Submission Instructions: Translate the following MIPS pseudo instructions into “

ID: 3902773 • Letter: S

Question

Submission Instructions:
Translate the following MIPS pseudo instructions into “real” MIPS instructions. That is, show the mapping of the pseudo instructions to MIPS instructions. Note that the only register you can use as temporary is register $at ($1). (the meaning of the symbol ‘||’ is that the order of the operations does not change the result of the operations.

1.   ble Rs, Rt, Label
?Branch on less than or equal;
If (???? ? ????) then branch to label

2.   abs Rd, Rs
?Absolute;
Rd = absolute-value (Rs)

3.   slei Rd, Rs, Constant
?Set less than or equal immediate;
If (???? ? ????????????????) then ???? = 1, else ???? = 0.

4.   bgeo Rs, Label
?Branch on greater than or equal to one;
If (???? ? 1) then branch to label

Rs - RtR - Rs

Explanation / Answer

1. ble Rs, Rt, Label - Branch on less than or equal;

2. abs Rd, Rs - Absolute

3. slei Rd, Rs, Constant - Set less than or equal immediate

slt Rd, Rs, $1 # here $1 stores the value of constant

4. bgeo Rs, Label - Branch on greater than or equal to one;

Please let me know in case of any clarifications required. 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