Question: Given the MARIE simulator machine level code in the following: If, Load X Subt Y Skipcond 400 Jump Else Then, Load X Add X Store

Given the MARIE simulator machine level code in the following:

If, Load X

Subt Y

Skipcond 400

Jump Else

Then, Load X

Add X

Store X

Jump Endif

Else, Load Y

Subt X

Store Y

Endif, Halt

X, Dec 12

Y, Dec 20

a) Please explain what the program does.you can rewrite the pseudo code in high-level programming like Java or C++ if it helps. also, give the value in AC after executing the program

(b) If we change the value of X to 20, i.e. X, Dec 20 What is the value in AC after executing the above program then?

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!