Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

. (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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Advances In Databases And Information Systems Uropean Conference Adbis 2020 Lyon France August 25 27 2020 Proceedings Lncs 12245

Authors: Jerome Darmont ,Boris Novikov ,Robert Wrembel

1st Edition

3030548317, 978-3030548315

More Books

Students also viewed these Databases questions

Question

14. State the all-or-none law.

Answered: 1 week ago