In: Computer Science
I NEED THIS COMPLETED IN MARS 4.5
Six instructions are shown below. Convert each of these instructions into machine code and write your final answer in hexadecimal form.
The six instructions are -
I concerted each instruction given into machine code using MARS 4.5:
1.add $t0, $s0, $s1 : Machine code = 0x02114020
2.lw $t0, 0x20($t7): Machine code = 0x8de80020
3.addi $s0, $0, −10 : Machine code = 0x2010fff6
4.addi $s0, $0, 73 : Machine code = 0x20100049
5.sw $t1, −7($t2) : Machine code = 0xad49fff9
6.sub $t1, $s7, $s2 : Machine code = 0x02f24822
Running all instructions at a time: