Suppose the opcode of an MIPS instruction is 0 in decimal, the funct is 011000 in binary, and the rest of the machine code is c4000 in hexadecimal (from high-order bit to low-order bit). What is the instruction? When showing the registers, use names (e.g. $t0, $s2) instead of indices (e.g $8, $17).
Hexadecimal Binary 0 0000 1 0001 2 0010 3 0011 4 0100 5 0101 6 0110 7 0111 8 1000 9 1001 A 1010 B 1011 C 1100 D 1101 E 1110 F 1111 Use this table to convert from hexadecimal to binary Converting C4000 to binary C => 1100 4 => 0100 0 => 0000 0 => 0000 0 => 0000 So, in binary C4000 is 11000100000000000000 opcode = 000000 rest = 11000100000000000000 funct = 011000 (mult) => 00000011000100000000000000011000 => 000000 11000 10000 0000000000 011000 => SPECIAL $t8 $s0 0 MULT => SPECIAL rs rt 0 MULT so, instruction is mult $t8, $s0 Answer: -------- mult $t8, $s0
Get Answers For Free
Most questions answered within 1 hours.