Question: (Memory mapped I/O interrupt) Write a MIPS program to implement the following single digit adder: keyboard input: X+Y= display output: X+Y=Z where X and Y
(Memory mapped I/O interrupt) Write a MIPS program to implement the following single digit adder: keyboard input: X+Y= display output: X+Y=Z where X and Y are single digits (such as 2 and 7) and Z is the result (such as 9). Please use keyboard interrupt to read the keyboard input from the receiver data, compute the result Z and use polling (on the transmitter control and transmitter data) to send the output X+Y=Z to the display. To test your code, you need open the MMIO in the simulator. Goto ToolsKeyboard and Display MMIO make sure you press connect to MIPS to run your code. Sometimes, it is also helpful to press reset on the same screen. Dont forget to store registers when you write MIPS functions To slow down execution in the simulator, slide Run speed to max bar to the left. A detailed sketch of implementation was presented in lecture and will also be sent to you by email.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
