Question: 4. (4 points) Write a MIPS device driver for reading in the X- and Y-co-ordinates of a mouse, which are available in at locations labeled
4. (4 points) Write a MIPS device driver for reading in the X- and Y-co-ordinates of a mouse, which are available in at locations labeled mouse I and mouse.Y, respectively. Each of the co-ordinates is a 32-bit word. The read X- and Y-co-ordinates should be placed in registers $vo and Sv1, respectively. It is unwise to read the co-ordinates while the mouse is not ready; if the mouse is ready, then the most significant bit of its 8-bit status register, labeled mouse.status, is set to 1. After reading it, the device driver should reset that bit. It is unwie to read the orontiats
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
