Question: . (10 marks) Write a MIPS assembly language program that uses busy-waiting and memory-mapped I/O to implement a Caesar cipher. Specifically, your program should start

. (10 marks) Write a MIPS assembly language program that uses busy-waiting and memory-mapped I/O to implement a Caesar cipher. Specifically, your program should start by inputting from the user (and echoing) two characters, which should be digits representing a number n between 0 and 25. (A number n such as 3 would be input as 03.) Then, your program should output a newline (ascii code 10). Finally, your program should echo characters as typed by the user, with each character from a-z (lower case letters) replaced by the character occurring n later in the alphabet (with wrap-around), and any other characters remaining unchanged. For example, if the user types 09 and then Hi there, after echoing the 09 followed by the newline character, your program should output (as the user is typing Hi there) Hr cqnan. Your program should terminate when the typed character is a newline. (Note: in QtSpim, make sure Enable Mapped IO is selected under Simulator/Settings.)

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!