Question: 2. (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

2. (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 Tools?Keyboard 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. Please make sure the code runs! Please also post the output to show that it ran correctly.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!