Question

2. The following is part of a MIPS program in machine code. Decode this code and convert it to the equivalent assembly language program. Your solution will have one label. Be sure to put it at the correct location. 5 points 0x20090014 0x00005024 0x01495020 0x00094840 0x1520fffd 0x3c081001 Oxad090000

0 0
Add a comment Improve this question Transcribed image text
Answer #1

Convert the instruction in binary and decode to instruction based on bit position.

20090014 => ADDI $t1 $zero 0x0014 Binary: 00100000000010010000000000010100

00005024 => AND $t2 $zero $zero Binary: 00000000000000000101000000100100

01495020 => ADD $t2 $t2 $t1 Binary: 00000001010010010101000000100000

00094840 => SLL $t1 $t1 0x0undefined Binary: 00000000000010010100100001000000

1520fffd => BNE $t1 $zero 0xFFFD Binary: 00010101001000001111111111111101

3c081001 => LUI $t0 0x1001 Binary: 00111100000010000001000000000001

ad090000 => SW $t1 0x0000 $t0 Binary: 10101101000010010000000000000000

snippet:

functions. asm new 1 M 9 new 2* 20090014 => ADDI $t1$zero 0x0014 2 00005024AND $t2 Şzero $zero Binary: 0010000000001001000000

Add a comment
Know the answer?
Add Answer to:
2. The following is part of a MIPS program in machine code. Decode this code and...
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
Active Questions
ADVERTISEMENT