Question: Assemble the following assembly-language code by writing out the corresponding machine language instructions. You may find instruction definitions in Appendix A or in the Wikipedia

 Assemble the following assembly-language code by writing out the corresponding machinelanguage instructions. You may find instruction definitions in Appendix A or in

Assemble the following assembly-language code by writing out the corresponding machine language instructions. You may find instruction definitions in Appendix A or in the Wikipedia article on MIPS. The hex address of each instruction is given to the left of each instruction. Print this page and fill in the decimal values for each field, convert to binary, and then convert the whole instruction to hexadecimal. The first one is done for you as an example. For longer fields, such as the immediate data in I-type instructions, draw a line connecting the fields, such as 6. 4000 slt Ss1, Ss2, Ss3 Instruction breakdown by binary bit 5 bits 6 bits 4 2 5 bits 5 bits 5 bits 6 bits Dec Bin lol0lolo 0 0 10 0101 01011100 0 10000 0 101 0 10 Hex 8 8 2 2 4004 or $s1, $s2, $s3 Instruction breakdown by binary bit 5 bits 5 bits 5 bits 5 bits 6 bits 6 bits Dec Bin Hex 4008 addi $to, $t4,17 Dec Bin Hex 400C add $s1, $s1, $s3 Dec Bin Hex 4010 sw $s0, 100($t2)#100 is a decimal number Dec Bin Hex

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!