Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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 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
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