Question: Given the am ORG 200 If, Load X Subt Y Skipcond 400 Jump Else Then, Load Y StoreX Jump Endif Else, Load Y add X

Given the am ORG 200 If, Load X Subt Y Skipcond 400 Jump Else Then, Load Y StoreX Jump Endif Else, Load Y add X StoreY Endif, Output Halt Two, Dec 2 X Dec 10 Y, Dec 10 END Use the MARIE Simulator to run the above program (MarieSim), and answer the following questions: a. Using the step mode to run the program 1. Show the changes in the registers (AC, IR, MAR, MBR, PC, etc.) by taking a snapshot showing the program and these registers during the execution of 2. Give a description for these changes in (AC, IR, MAR, MBR), that is, where did the value in each register come from? b. After running the hole program, what values will be in: Memory location X Memory location Y Now, edit the code, assign the last digit of your ID number to Y, and run it again. What will be the output of the program? C. Given the am ORG 200 If, Load X Subt Y Skipcond 400 Jump Else Then, Load Y StoreX Jump Endif Else, Load Y add X StoreY Endif, Output Halt Two, Dec 2 X Dec 10 Y, Dec 10 END Use the MARIE Simulator to run the above program (MarieSim), and answer the following questions: a. Using the step mode to run the program 1. Show the changes in the registers (AC, IR, MAR, MBR, PC, etc.) by taking a snapshot showing the program and these registers during the execution of 2. Give a description for these changes in (AC, IR, MAR, MBR), that is, where did the value in each register come from? b. After running the hole program, what values will be in: Memory location X Memory location Y Now, edit the code, assign the last digit of your ID number to Y, and run it again. What will be the output of the program? C
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
