Question: Question 1 7 1 p t s Write a C or C - like language expression that corresponds to the calculation completed by the following
Question
Write a or like language expression that corresponds to the calculation completed by the following code presuming that A and B are "global variables" that live in memory as shown. Your answer is a language expression, and should be not more than one brief line.
orig
AND RO RO #O
AND R R #
LD RO A
LD R B
ADD RO RO RO
ADD RO RO RO
ADD RO RO R
ADD R R #
ADD R R R
ADD RO RO R
ST RO A
HALT
A FILL SOMEVALUE
B FILL SOMEOTHERVALUE
END
Note: I did not give specific initial values for A and I do not want a numeric answer based on specific contents of A and I want a language expression that describes the TOTAL effect on A and written in terms of A and treated as if they were variables and if the above code were created to implement the expression in LC
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
