Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Given the MARIE machine level code in the following: Address Label Instruction 100 | If, Load X 101 | Subt Y 102 | Skipcond 400

Given the MARIE machine level code in the following:

Address Label Instruction

100 | If, Load X 101 | Subt Y

102 | Skipcond 400 103 | Jump Else

104 | Then, Load X

105 | Add X 106 | Store X

107| Jump Endif

108| Else, Load Y

109| Subt X 10A | Store Y

10B| Endif, Halt

10C| X, Dec 12

10D| Y, Dec 20

A. Please explain what the program does by rewriting the pseudo code in high-level programming like Java or C++ and give the value in AC after executing the program.

B. If we change the value of X to 20, i.e.

10C | 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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Machine Learning And Knowledge Discovery In Databases European Conference Ecml Pkdd 2015 Porto Portugal September 7 11 2015 Proceedings Part 2 Lnai 9285

Authors: Annalisa Appice ,Pedro Pereira Rodrigues ,Vitor Santos Costa ,Joao Gama ,Alipio Jorge ,Carlos Soares

1st Edition

3319235249, 978-3319235240

More Books

Students also viewed these Databases questions

Question

Define line and staff authority

Answered: 1 week ago

Question

Define the process of communication

Answered: 1 week ago

Question

Explain the importance of effective communication

Answered: 1 week ago

Question

* What is the importance of soil testing in civil engineering?

Answered: 1 week ago