Project 2 MARIE Start code at bottom of document
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 A-Z; (ii) debug and test your program by simulating it using the MARIE simulator; (iii) document your work in a short report; and (iv) submit the report file (.pdf), assembler source file (.mas), assembler listing file (.lst), and assembler executable file (.mex).
A template source code file (Project-2_Start.mas) is provided with this assignment. Edit this file to create a program that meets the program specifications. Note that the template includes instructions to initialize some working values that your program can use. The template also defines memory locations. You may add data memory locations. The program can be designed without additional data locations, but it may be necessary to do so for your design.
For full credit, your solution must perform the functions and satisfy the requirements specified below.
a) The first instruction of the program must be placed at location (address) 0x100 (100 hexadecimal) in MARIE’s memory. This is accomplished by following the program template that is provided.
b) The constant data values (One, ChA, ChZ, ChPer, Val13, Start) should not be changed by the program. The program can load from these memory locations, but should not store to them.
c) Transformed input characters must be stored in successive memory locations beginning at location 0x200 (200 hexadecimal) as indicated in the program template. The program should store all transformed input characters before any characters are output.
d) The program should always initialize the values for Ptr in the working data memory and not rely on the values for these locations that are defined in the assembly source file. This initialization is done by the provided template file.
e) 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.
f) When transformed characters are stored and when transformed characters are output, the program must use a loop and indirect addressing to access the values in the array of words. Note that variable Ptr is initialized in the template code and should be used in the loop. You may also define a Count variable to count the number of characters, but there are also correct designs that do not require a Count variable.
g) The program should operate as follows. Input Phase:
end of the characters or the characters can be counted to determine how many transformed characters to output during the output phase.)
Test 1: Input the eight-character sequence “VIRGINIA” followed by a ‘.’ to terminate the input. Note that you need to input one character at a time into MarieSim’s ASCII Input area, with each character followed by pressing the “Enter” key. The ROT13 value of each character (“IVETVAVN”) should be displayed after the ‘.’ character is input.
Test 2: Reload the program in MarieSim, without reassembling, input the four-character sequence “GRPU” followed by a ‘.’ To terminate the input. Note the output.
When you create your source file within MarieSim (using the File > Edit menu pick), use file name lastname_firstname_P2.mas, where “lastname” is your last or family name and “firstname” is your first or given name. You can assemble your source file in the editor program. The assembly process creates a listing file (lastname_firstname_P2.lst) and an executable file (lastname_firstname_P2.mex). Load the executables file into the simulator for execution.
The Project-2_Start.mas source file includes a ROT13 subroutine that almost performs this transformation. You need to fix one bug in the subroutine.
The post Project 2 MARIE Start code at bottom of document appeared first on best homeworkhelp.