Question: Step 1: Implementation of IF-THEN-ELSE. Write the following code segment in MARIE's assembly language Set initial values of X, Y as shown below (a, b,

Step 1: Implementation of IF-THEN-ELSE. Write the following code segment in MARIE's assembly language Set initial values of X, Y as shown below (a, b, c) IF X> 10 THEN := 0; Else X := 8; ENDIF OutputX OutputY Run your program in MarieSim environment, test it with different initial values of X and Y as follows a) Initial values: X-.15 , Y = 0; (all values are in decimal b) Initial values : X = 25 , Y--9 (all values are in decimal) c) Initial values: X = 14 , Y 14: (all values are in decimal) Make sure your programs work correctly in each case Print your MARIE assembly codes and the results of your program in each of the above cases. Show the content of memory and all registers at each important step Step 1: Implementation of IF-THEN-ELSE. Write the following code segment in MARIE's assembly language Set initial values of X, Y as shown below (a, b, c) IF X> 10 THEN := 0; Else X := 8; ENDIF OutputX OutputY Run your program in MarieSim environment, test it with different initial values of X and Y as follows a) Initial values: X-.15 , Y = 0; (all values are in decimal b) Initial values : X = 25 , Y--9 (all values are in decimal) c) Initial values: X = 14 , Y 14: (all values are in decimal) Make sure your programs work correctly in each case Print your MARIE assembly codes and the results of your program in each of the above cases. Show the content of memory and all registers at each important step
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
