EE306 Exam 2 Practice Problems Solutions

# EE306 Exam 2 Practice Problems Solutions - EE306 Exam 2...

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

EE306 Exam 2 Practice Problems This is not intended to be a full review of the topics we've covered since the last exam. Problem 1 What steps that would be required, in order, to accomplish each of the following instructions? To answer each question, select the steps from the diagrams provided, and list the letters corresponding to the diagrams, in the appropriate order. STR: B, A, E LEA: C, F LDI: C, A, D, G JMP: H A B C D

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

View Full Document
E F G H
Problem 2 The following subroutine performs integer division – that is, it performs the division of two numbers, and neglects any remainder. As an example: 12 ÷ 3 = 4 13 ÷ 3 = 4 14 ÷ 3 = 4 15 ÷ 3 = 5 However, the program contains two errors. First, mark the "Error" column next to the lines containing the errors. Then, neatly write the corrected line in the "Correction" column. R0 contains the first number, R1 contains the second number, and R2 contains the result. You may assume that R0 and R1 are always greater than zero.

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