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 numbernbetween 0 and 25. (A number nsuch as 3 would be input as “03”.) Then, your program should output a newline (ascii code 10). Finally, your program should echo

icon
Related questions
Question

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 numbernbetween 0 and 25. (A number nsuch 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) replacedby the character occurring nlater 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”.)

Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps with 1 images

Blurred answer