- #1
XodoX
- 203
- 0
I think it's easy, but I don't get it.
Given the machine language instruction 0x00221820. What MIPS assembly instruction does it represent?
I know the solution. It's add $3, $1, $2 I just don't know how to get there.
I know I have to convert the numbers into binary first. So you have 0000 0000 0010 0010 0001 etc..
Then you take the first 6 0's, and that's how you determine what type it is ( R-type) ? How do I do this? And then how do I know it's add $3, $1, $2 using the numbers that are left after the first 6 0's ? I know that there's a lsit where you can look it up, but you have 00221820, which is 8 segments in total. But it's just 4 commands ( add $3, $1, $2 ).
Dosen't make any sense.
Given the machine language instruction 0x00221820. What MIPS assembly instruction does it represent?
I know the solution. It's add $3, $1, $2 I just don't know how to get there.
I know I have to convert the numbers into binary first. So you have 0000 0000 0010 0010 0001 etc..
Then you take the first 6 0's, and that's how you determine what type it is ( R-type) ? How do I do this? And then how do I know it's add $3, $1, $2 using the numbers that are left after the first 6 0's ? I know that there's a lsit where you can look it up, but you have 00221820, which is 8 segments in total. But it's just 4 commands ( add $3, $1, $2 ).
Dosen't make any sense.