(adsbygoogle = window.adsbygoogle || []).push({}); 1. The problem statement, all variables and given/known data

Hey everybody! here is my question: Translate the following machine code instructions to MIPS assembly. What is the format of each instruction?

1. 0000 0000 0000 1010 0100 1010 1000 0000

2. 0000 0000 0010 0010 0010 0000 0010 0101

2. Relevant equations

3. The attempt at a solution

Now when trying to figure out the solution of the first, i looked into my book and found an opcode which was the same as the first 6. Which was add.... now i figured out the format:

and got this as a resultadd $t1, $zero, $t2is that right? i was unsure because i kinda felt like i left the last part out.... i figured out 0000 00 | 00000| 0 1010| 01001|

but i didn't know if i had to do anything with the ending function --- 101 1000 0000 ?

also the second question i am having trouble figuring it out... i know that the opcode and the function match up to encode a certain type but when im looking for both the opcode and function together in my book/online they only have the opcode? if this is the case then it is another add right?

Your help is appreciated!

1. The problem statement, all variables and given/known data

2. Relevant equations

3. The attempt at a solution

**Physics Forums - The Fusion of Science and Community**

# Converting Binary to Mips

Know someone interested in this topic? Share a link to this question via email,
Google+,
Twitter, or
Facebook

Have something to add?

- Similar discussions for: Converting Binary to Mips

Loading...

**Physics Forums - The Fusion of Science and Community**