Question: You must: ( i ) design and write an assembly language program for the MARIE processor that inputs, transforms, stores, and then outputs a sequence
You must:
i design and write an assembly language program for the MARIE processor that inputs, transforms,
stores, and then outputs a sequence of characters from the set AZ;
ii debug and test your program by simulating it using the MARIE simulator;
Design Specification
User inputs a sequence of characters from the set AZ capital letters only stores each character in
memory after it is transformed by the trivial ROT cipher, and then, after character input completes,
outputs the transformed characters.
The program should work for any inputs A through Z and a period terminates input In the interest
of keeping the program simple, the program does not need to validate inputs.
Input Phase:
Characters AZ are input. MarieSim allows the user to input a single character that is read into the
accumulator AC with an Input instruction.
If character period is input, then the input phase ends and the output phase begins.
The characters that are input are transformed using the trivial ROT cipher.
Output Phase:
All transformed characters are output, beginning with the first character that was transformed. The
character is not to be output.
After all characters are output, the program halts by executing the HALT instruction.
Testing
Test and debug the program using the MARIE simulator MarieSimjar or online simualtor. Debug the
program using the Stepand Breakpoint features of the simulator. You must test your program with
the following three test cases.
Test : Input the eightcharacter sequence MAURITIUS followed by a To terminate the input.
Screenshot the output.
Test : Restart the program in MarieSim, without reassembling, then input the character sequence of
your name followed by a To terminate the input. Note the output and screenshot.
Test : Restart the program in MarieSim, without reassembling, then input the character sequence THE
QUICK BROWN FOX JUMPS OVER THE LAZY DOG. Note the output and screenshot.
Design Notes
The ROT cipher is an old, but trivial cipher that simply
rotates the characters by positions. For example, A is transformed to Nand Z is transformed to
M
HintTips: Design and test your program in an iterative manner, building from simple functionality to full
functionality. For example, first write a program that inputs characters and just stores them in memory.
Then, add the code to transform the characters using ROT before they are stored. Then complete the
program by adding code to output the transformed characters.
Can you provide me with a full marie answer for this program?
Use only the instruction sets available for marie
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
