Answered step by step
Verified Expert Solution
Link Copied!

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

image text in transcribed

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Filing And Computer Database Projects

Authors: Jeffrey Stewart

2nd Edition

007822781X, 9780078227813

More Books

Students also viewed these Databases questions

Question

5. Understand how cultural values influence conflict behavior.

Answered: 1 week ago

Question

8. Explain the relationship between communication and context.

Answered: 1 week ago