Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
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