Answered step by step
Verified Expert Solution
Question
00
1 Approved Answer
Problem 1 (15 points) Encode the following MIPS instructions. For each instruction, you should identify the format type (R, I, or J format) and the
Problem 1 (15 points) Encode the following MIPS instructions. For each instruction, you should identify the format type (R, I, or J format) and the decimal values of each field and then given the hexadecimal representation of the instruction. (You may find the Appendix A helpful (pp. A-49 - A-81), where the encoding of MIPS instructions is described in detail.) # $s2 is register 18 and $s4 is register 20 # where func1 is at address 3000,en # where label l precedes the 10th instruction before this one. # In other words, there are 9 other instructions between the two # $sp is register 29 (stack pointer) # $t1 is register 9 1) 2) 3) addi $s2, $s4,-11 j funcl beq $s2, $s3, label1 4) 5) lw -8(Ssp) slt , $s2, $s5
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access with AI-Powered 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