MidTerm 3 v2 Solutions.pdf

# MidTerm 3 v2 Solutions.pdf - CS/ECE 252 INTRODUCTION TO...

• Homework Help
• 7

This preview shows page 1 - 4 out of 7 pages.

CS/ECE 252: INTRODUCTION TO COMPUTER ENGINEERING UNIVERSITY OF WISCONSIN—MADISON Prof. Adil Ibrahim TAs: Wen-Fu Lee, Amogh Joshi, Ammar Mahmood, Zetong Qi, Ragini Rathore, Sandhya Srinivas, Gautham Sunjay, Qian Zhang Examination 3 In Class (50 minutes) Wednesday, April 11, 2018 Weight: 17.5% NO BOOK(S), NOTE(S), CALCULATORS OR ELECTRONIC DEVICES OF ANY SORT. The exam has nine pages. You must turn in the pages 1-8. Circle your final answers. Plan your time carefully since some problems are longer than others. Use the blank sides of the exam for scratch work. LAST NAME: ___________________________________________________ FIRST NAME: ___________________________________________________ SECTION: ___________________________________________________ ID#: ___________________________________________________ 1

Subscribe to view the full document.

Problem Maximum Points Points Earned 1 4 2 3 3 10 4 9 5 7 6 4 Total 37 2
Problem 1 (4 points) Assume that the following two LC-3 instructions are a part of a large program: 0001 001 001 1 11010 0000 010 000000001 a) If the second instruction (which is a branch) is taken, what can you tell about the value of R1 just before executing these two instructions? R1 – 6 = 0 => R1 was 6 before execution b) If the branch instruction is located at address 0x2000, specify the range of addresses to which you can branch using this instruction.

Subscribe to view the full document.

• Spring '08
• Wood
• Computer Architecture, Exam Solutions, Central processing unit, X86, Machine code, Jaguar Racing

{[ snackBarMessage ]}

###### "Before using Course Hero my grade was at 78%. By the end of the semester my grade was at 90%. I could not have done it without all the class material I found."
— Christopher R., University of Rhode Island '15, Course Hero Intern

### 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