Question: Source: * Load Test Code Output: Final Assembly [ 0 0 0 0 ] 0 5 9 8 0 F 0 0 0 2 0

Source: *
Load Test Code
Output: Final Assembly
[0000]
0598
0F00
0200
3200
5002
6600
8600
000F
3A00
1A00
0ACE
0900
1100
4200
Step 1: Formatting...
Step 2: Converting numbers...
Step 3: Extracting labels...
Step 4: Substituting labels...
Step 5: Translating to opcodes...
Step 6: Adding Addresses...
Step 7: Final Assembly...
...finished.Please remember that its WASP assembly code. Please just provide the assemble code. The assemble code should look like (comma indicates next line):06F5,1A00,001B.
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:
Nvvk tvyupun, Ty. Abypun!
The solution given has an error at line 16: invalidcharacter in number: H
 Source: * Load Test Code Output: Final Assembly [0000] 0598 0F00

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!