Given the following MIPS instructions convert them into both
Given the following MIPS instructions, convert them into both Machine Code and the hexadecimal equivalent: a) add $0, $t0, $t1 a. Machine Code: b. Hexadecimal: b) addi $s4, $t8, 200 a. Machine Code: b. Hexadecimal: c) sw $s2, 36 ($s0) a. Machine Code: b. Hexadecimal:
Solution
a)
Binary: 00000001000010011000000000100000
Hex: 0x01098020
b)
Binary: 00100011000101000000000011001000
Hex: 0x231400c8
c)
Binary: 10101110000100100000000000100100
Hex: 0xae120024
