Question

Provide the type and hexadecimal representation of following instruction: lw $t1, 2($t0)

Provide the type and hexadecimal representation of following instruction: lw $t1, 2($t0)

0 0
Add a comment Improve this question Transcribed image text
Answer #1
lw is a J-type format instruction..

lw instruction:
----------------
lw $t, offset($s)

1000 11ss ssst tttt iiii iiii iiii iiii

our instruction:
-----------------
lw $t1, 2($t0)

$t is $t1 => in binary it is 01001
$s is $t0 => in binary it is 01000
offset is 2 => in binary it is 0000 0000 0000 0010

1000 11ss ssst tttt iiii iiii iiii iiii => 1000 1101 0000 1001 0000 0000 0000 0010

In hexadecimal it is 0x8D090002.

Answer: 8D090002
Add a comment
Know the answer?
Add Answer to:
Provide the type and hexadecimal representation of following instruction: lw $t1, 2($t0)
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT