4. Please use the Summary of Instruction Formats handout provided to you in clas
ID: 2248498 • Letter: 4
Question
4. Please use the Summary of Instruction Formats handout provided to you in class, to give the 32-bit binary encoding for the ALU instruction shown below. Start by figuring out the encoding for each of the 4 instruction fields, then concatenate the fields appropriately to determine the final 32-bit encoding. MUL (R1, R17, R22) It's best to provide your answer in hex by using a "Ox" prefix or binary by using a "Ob" prefix. (l6points) Value of 6-bit opcode field? Value o Value of 5-bit RA field? Value of 5-bit RB field? 32-bit encoding for instruction?Explanation / Answer
32 bt encoded intruction of Beta Assembly Lnguage 6.004 Computation Structure for the intruction
MUL ( R1 , R17 , R22)
whose actual syntax is MUL (RC, RA, RB) has following encoded bits
1. Value of 6 bit Opcode field (MUL) is
ob 100010
2. Value of 5-bit RC field (R1) is
ob 00001
3. Value of 5-bit RA field (R17) is
0b 10001
4. Value of 5-bit RB field (R22) is
ob 10110
5. 32-bit encoding for instruction is
ob 1 0 0 0 1 0 0 0 0 0 1 1 0 0 0 1 1 0 1 1 0 x x x x x x x x x x x
position 31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 to 0(unused)
Related Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.