Question

Problem 2: The following main function is going to call odd_sum function created in problem 1. Write MIPS assembly codes for this main function only. Assume m and result are in s1 and s2 respectively.

int main ()

{ int m = 7, result;

result = odd_sum ( m);

return 0;

}

Problem 2: The following main function is going to call odd_sum function created in problem 1. Write MIPS assembly codes for

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

text data . m.word global main main : la $50 m #initialize register # $S1 - m iw $S1, 0 ($50) ori $52, 60,0 # $S9 = result. j

Add a comment
Know the answer?
Add Answer to:
Problem 2: The following main function is going to call odd_sum function created in problem 1....
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