Translate the following MIPS instructions (which copy a string from $s0 to $s1) to their corresponding number representations:
1 main: addiu $t0, $zero, 0
2 loop: addu $t1, $s1, $t0
3 addu $t2, $s2, $t0
4 lb $t3, 0($t1)
5 sb $t3, 0($t2)
6 addiu $t0, $t0, 1
7 bne $t3, $zero, loop
Include the binary representation of each instruction, with spaces demarcating the logical divisions in the instruction. Also include a list of the names of the different parts of the instruction. For example, if this was the line of code I was translating:
1 main: add $t7 $t8 $t9
Then this would be my answer for that line:
================================
1 main: add $t7 $t8 $t9
================================
000000 11000 11001 01111 00000 100000
Type: R
op: 0
rs: 24
rt: 25
rd: 15
shamt: 0
funct: 32