Question: Assemble the following assembly-language code by writing out the corresponding machine language instructions. The hex address of each instruction is given to the left of


Assemble the following assembly-language code by writing out the corresponding machine language instructions. 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 17 4000 slt $s1, $s2, $s3 Instruction breakdown by binary bit 6 bits 5 bits 5 bits 5 bits 5 bits 6 bits Dec 0 1 8 19 1 7 0 4 2 Bin 0 0 0 0 0 0 1 0 0 1 0 1 0 0 1 1 1 0 0 0 1 0 0 0 0 0 1 0 1 0 1 0 Hex 0 2 5 3 8 8 2 A 4004 or $s1, $s2, Ss3 Instruction breakdown by binary bit 6 bits 5 bits 5 bits 5 bits 5 bits 6 bits Dec Bin Hex
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
