Write MARIE code to perform the following program excerpt. } { if(x < y + z) x = x - y; z=z+1; else y=y-1; Display the content of the AC

C++ for Engineers and Scientists
4th Edition
ISBN:9781133187844
Author:Bronson, Gary J.
Publisher:Bronson, Gary J.
Chapter5: Repetition Statements
Section5.4: For Loops
Problem 10E
icon
Related questions
Question

ca you Include a screenshot of the simulation’s result (A screenshot of the MARIE Simulator window after running the program).

 

Use “ORG” instruction to start the program at an address equivalent to 130010.

Use the number 0 to input the new value of x.

  • Do not forget to change the Input and output boxes to decimal!
  • The following labels and directives should be included at the end of  program:

X,      Dec 0

Y,      Dec 2

Z,      Dec 5

One,  Dec 1

Write MARIE code to perform the following program excerpt.
}
{
if(x < y + z)
x = x - y;
z=z+1;
else y=y-1;
Display the content of the AC
Transcribed Image Text:Write MARIE code to perform the following program excerpt. } { if(x < y + z) x = x - y; z=z+1; else y=y-1; Display the content of the AC
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps

Blurred answer
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
C++ for Engineers and Scientists
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr