MidTerm 3 v2 Solutions.pdf

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

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
Image of page 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
Image of page 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.
Image of page 3

Subscribe to view the full document.

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

{[ snackBarMessage ]}

Get FREE access by uploading your study materials

Upload your study materials now and get free access to over 25 million documents.

Upload now for FREE access Or pay now for instant access
Christopher Reinemann
"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

Ask a question for free

What students are saying

  • Left Quote Icon

    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.

    Student Picture

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

  • Left Quote Icon

    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.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    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.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern