Exercise 6.39 Repeat Exercise 6.38 for the following pseudoinstructions. (a) beq $t1, imm31:0, L (b) ble $t3,

Question:

Exercise 6.39 Repeat Exercise 6.38 for the following pseudoinstructions. 

(a) beq $t1, imm31:0, L
(b) ble $t3, $t5, L
(c) bgt $t3, $t5, L
(d) bge $t3, $t5, L 


Data from Problem 38

Show the MIPS instructions that implement the following pseudo instructions. You may use the assembler register, $at, but you may not corrupt (overwrite) any other registers. 

(a) addi $t0, $s2, imm31:0
(b) lw $t5, imm31:0($s0)
(c) rol $t0, $t1, 5 (rotate $t1 left by 5 and put the result in $t0)
(d) ror $s4, $t6, 31 (rotate $t6 right by 31 and put the result in $s4)

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Related Book For  answer-question
Question Posted: