Question

Given the big-endian instruction memory map shown below in (b), and the initial values $t1 0XE7eeeADD, $s5 = 0x80000010 . We
0 0
Add a comment Improve this question Transcribed image text
Answer #1

Answer

  • After lw instruction ,t1 contain initial value 0xE7000ADD
  • Andi $t1,$t1,0x3E0000A9, this instruction anding immediate value with t1 value

                                     t1= 0xE7000ADD AND 0x3E0000A9,

                Binary: 1110 0111 0000 0000 0000 1010 1101 1101   (0xE7000ADD)

                             0011 1110 0000 0000 0000 0000 1010 1001 (0x3E0000A9)

                          ------------------------------------------------------------------------------------------

                            0010 0110 0000 0000 0000 0000 1 000 1001      --> 0x26000089

  • sra $s5,$s5,3, instruction right shift $s5 value 3 times and store into $s5

                         $s5= 0x00000010>>3

                Binary: 0000 0000 0000 0000 0000 0000 0001 0000

After 3 right shift: 0000 0000 0000 0000 0000 0000 0000 0010   --> 0x00000002

  • Other instructions not changing t1 and s5 values

                     $t1=0x26000089

                      $s5=0x00000002

Add a comment
Know the answer?
Add Answer to:
Given the big-endian instruction memory map shown below in (b), and the initial values $t1 0XE7eeeADD, $s5 = 0x80000010 . We execute the following instructions: lw $t1, 12($s5) andi $t1, $t1, 0x3...
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