Question

(Computer Engineering) Convert the following pseudo-code to MIPS assembler instructions. Include the code and the final...

(Computer Engineering)

Convert the following pseudo-code to MIPS assembler instructions.

Include the code and the final value of the $t0 register.

Set register $t1 = - 8 (negative 8)

Set register $t2 = 0x30

Put the result of the following arithmetic sequence into register $t0

$t2 - $t1 - 4 = $t0

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

addi $t1, $zero, -8
addi $t2, $zero, 0x30

sub $t0, $t2, $t1  # $t0 = $t2 - $t1
addi $t0, $t0, -4  # $t0 = $t2 - $t1 - 4

# final value stored in $t0 is 0x34. in decimal it is 52.


Add a comment
Know the answer?
Add Answer to:
(Computer Engineering) Convert the following pseudo-code to MIPS assembler instructions. Include the code and the final...
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