Question: The machine code format for R-type instructions like add is described in Section 6.3.1 of the course textbook, starting on page 305. The first six

The machine code format for R-type" instructions like add is described in Section 6.3.1 of the course textbook, starting on page 305. The first six bits are 000000, and the last 11 bits are 00000_100000, following an example in Figure 6.6. Table 6.1 (page 300) says $s0 is register 16 (10000), $t0 is register 8 (01000) and $t2 is register 10 (01010). So the bit pattern for the overall instruction is 000000_01000_01010_10000_00000_100000 What to Do Use information in Sections 6.3.1 and 6.3.2and possibly also Appendix B of the textbook to find machine code for the following instructions: sub $s1, $s1, $t5 SW $84, ($t8) $t6, 72($s3) addi $s7, $s6, -16 # Hint: Involves 16-bit two's-complement. Write brief explanations of how you found the bit patterns for each instruction. (Your explanations do not have to be as detailed as the one I gave in the example.) lw What to Put in Your PDF Submission A list of bit patterns for each of the above instructions, along with brief explanations of how you found the bit patterns
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
