Question: Write a MARIE assembly program that can compare two positive numbers: X and Y, and then store the bigger number of X and Y to

Write a MARIE assembly program that can compare two positive numbers: X and Y, and then store the bigger number of X and Y to Y. The pseudo code is as follows.

If X > Y

Y = X;

Else

Y = Y;

the following code can be used to initialize the variables x and y in which x is initialized to 40 and y is initialized to 20. x, Dec 40 //Initialize constant x to decimal 40

y, Dec 20 //Initialize constant y to decimal 20

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!