Question

1. Usually, there are many ways to translate a block of C code into assembly. It is always a good idea that you stick with your own way. Please translate the following code blocks into MIPS, where our convention is as follows: $SO stores integer x; $S1 stores integer y it (x>y+5) then xxy else y-x-y; while (x>y+5) x-; x-; y++h for (x=1; x<y: x++) {x-x+5 ; y++}

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

n According o eabove qjues ion we haue lo Convenkion dalo add : 李to,$51.5 loop : #iben J print Prin:ta print shiny nuline a0.reu) line # 医刺0,4- nove $00,$51 #pinty Sys call dalo fex Ci Sso, 20 7O, To0 j Printloop 2: #lhen j loof Pink Yo, I Sys Call Са ao.neuline #prinh Shiny neuline Gys Call si prin Syg Collda fa neultne 、ascHz In. s SL,2.0 oop: loop 2! #hen addi牡1,531,1 Sys Call ta 5ao, eoline #prin L shing newline Sys Cal

Add a comment
Know the answer?
Add Answer to:
1. Usually, there are many ways to translate a block of C code into assembly. It...
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