Question
Exercise 1 For each pseudoinstruction in the following table, produce a minimal sequence of actual MIPS instructions to accomplish the same thing. pseudoinstruction What it
Exercise 1
For each pseudoinstruction in the following table, produce a minimal sequence of actual MIPS instructions to accomplish the same thing.
pseudoinstruction | What it accomplishes | Solution |
beq $t1, 0xABCD, L | If ($t1 == 0xABCD) go to L |
|
beq $t2, 0x5454AABB, L | if($t2 == 0x5454AABB) go to L |
|
li $t1, 0xABCD | $t1 = 0xABCD |
|
li $t2, 0x5454AABB | $t2 = 0x5454AABB |
|
ble $t3, $t5, L | if ($t3 <= $t5) go to L |
|
bgt $t4, $t5, L | if ($t4 > $t5) go to L |
|
bge $t5, $t3, L | if ($t5 >= $t3) go to L |
|
addi $t0, $t2, 0x5454AABB | $t0 = $t2 + 0x5454AABB |
|
lw $t5, 0x5454AABB ($t2) | $t5 = Memory[$t2 + 0x5454AABB] |
|
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started