Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started