exam2 - University of Illinois at Urbana-Champaign...

Info icon This preview shows pages 1–3. Sign up to view the full content.

View Full Document Right Arrow Icon
University of Illinois at Urbana-Champaign Department of Electrical and Computer Engineering ECE 190: Introduction to Computing Systems Spring 2006 Exam II Apr. 4, 2006 Name: Note that the questions are not weighted equally. Budget your time accordingly, and do not work too long on any one problem. Score: Section: 1. (16 pts.) ( ) 9:00am Kelm 2. (5 pts.) ( ) 12:00pm Nichols 3. (8 pts.) ( ) 1:00pm Becker 4. (7 pts.) ( ) 3:00pm Wang 5. (5 pts.) ( ) 3:00pm Becker 6. (15 pts.) 7. (44 pts.) Total: (100 pts.)
Image of page 1

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

View Full Document Right Arrow Icon
Problem 1 ( 16 points ) A. (4 pts.) Consider the LC-3 instruction TRAP x23 . Explain in one sentence the role of the constant x23 in this instruction. B. (8 pts.) Suppose that memory mapped I/O is used to interface the LC-3 to a mouse. The mouse has one data register and one status register. Bit 15 of the status register is used to indicate when a mouse click has occured (i.e, bit 15 is set to a one when a mouse click occurs). In the space below, write an LC-3 subroutine, GetClick, that waits for a mouse click, and then returns the value of the mouse data register in R0. Your subroutine may change the values of registers R0-R3, but it may not change the values of any other registers or memory locations. The addresses of
Image of page 2
Image of page 3
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

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