Question: Problem: Working with MARIE Given the following program: Input Store TestVal Subt X If, Skipcond 000 Jump Else Then, Clear Load TestVal Jump EndIf Else,
Problem: Working with MARIE Given the following program: Input Store TestVal Subt X If, Skipcond 000 Jump Else Then, Clear Load TestVal Jump EndIf Else, Load TestVal Jump Finish EndIf, Add X Store Z Finish, Output Halt X, Dec 5 Y, Dec 2 Z, Dec 0 TestVal, Dec 0 Use the MARIE Simulator (MarieSim) to run the above program, and do the following: a. Add the necessary command to let the program start at address 200. b. After running the whole program, what values will be in:
Output (in decimal)
The memory location TestVal The register AC (in decimal) The register PC (in decimal) Instructions: - Input 3 as the value of TestVal. - Do not forget to change the representation of the Output window to Decimal.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
