Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Task 3 - Assembly programming Write an assembly language program for the WASP processor using the Sting assembler. Your assembly program should allow the user

Task 3-Assembly programming
Write an assembly language program for the WASP processor using the Sting assembler.
Your assembly program should allow the user to encrypt a message using a Caesar Cipher.
A "Caesar Cipher" is a simple and well-known way to encrypt text. To use it, you first pick a number
(called the "shift". For example, 3). Then every letter in the message has that number added to it, to
move it forward in the alphabet. For example, in this case, "A" becomes "D"."B" becomes "E" and
so on. For numbers at the end of the alphabet, the letters start again from the beginning. In this
example the letter "x" would become "A" and the letter "Y" would become "B".
Using a shift of 3, the text YELLOW SUBMARINE becomes BHOORZ VXEPDULQH.
Your program will work as follows:
Allow the user to type in a single digit for the shift. The shift will be between 0 and 9. Your
program will store the number in a variable. You do not need to handle shifts larger than 9.
The user will type text into the console. This will be converted to the encrypted text and
displayed on the screen.
The program will work for both upper- and lower-case characters. The program will not
change spaces, digits, or other symbols.
The program will halt once it has displayed a line of text. (Check for the new line character.)
For example, if the user enters a shift of 7, then enters "Good morning, Mr. Turing!" your program
will display: i used sting wrote the code you sent me and still it showed me errors i want to know where i can exactly right this code on which software i need more steps on where am gonna write this code because i feel a bit lost PLEASE DONT FORGET ITS USING STING ASSEMBLER WRITE THE CODE FOR WASP and still 3 experts send the same issue i need steps on where and how to run the code
image text in transcribed

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_2

Step: 3

blur-text-image_3

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

Database Systems On GPUs In Databases

Authors: Johns Paul ,Shengliang Lu ,Bingsheng He

1st Edition

1680838482, 978-1680838480

More Books

Students also viewed these Databases questions