# Quiz 3 - 1 At the beginning of a procedure we want to save...

This preview shows pages 1–6. Sign up to view the full content.

1. At the beginning of a procedure, we want to save the values in registers \$a0, \$ra, and \$s0 into the stack. Which instruction below can we use to make room in the stack for these register values?

This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document
A. ad di  \$s p,  \$s p,  -3 B. ad di  \$s p,  \$s p,  3 C. ad di  \$s p,  \$s p,  -1 2 D. ad di  \$s p,  \$s p,  12
Points Earned: 1/1 Correct Answer: C Your Response: C 2. For the below assembly code, what is the content of register \$ra just after executing the instruction 'jal rt1'  assuming the value in \$t0 is equal to the value in \$t1? rt1:      ... rt2:      ... main:    ...            bne \$t0, \$t1, brch            jal rt1 done:   j finish brch:    jal rt2 finish:   ...

This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document
A. Th ad dr es of  ins tru cti on  la be le by  'rt 1' B. Th ad dr es of  ins tru cti on  la be le by  'do ne' C. Th ad dr
Points Earned: 1/1 Correct Answer: B Your Response: B

This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

### What students are saying

• As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

Kiran Temple University Fox School of Business ‘17, Course Hero Intern

• I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

Dana University of Pennsylvania ‘17, Course Hero Intern

• The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

Jill Tulane University ‘16, Course Hero Intern