Perform arithmetic computation, Engineering Mathematics

a.) Give a short sequence of machine instructions for the task "Add the contents of memory location A to those of memory location B, and place the answer in location C". You have available the following instructions:

Load Ri, LOC

Store Ri, LOC

which are the only instructions to transfer data between the memory and the general purpose registers. After operands have been loaded from memory into processor registers, arithmetic computation can be performed, using the instructions:

ADD Ri, Rj, Rk

SUB Ri, Rj, Rk

where i, j, k need not be distinct. Do not change the content of either location A or B.

b.) Suppose now that you have Move and Add instructions available with the formats:

Move LOC1, LOC2

ADD LOC1, LOC2

These instructions move or add a copy of the operand at the second location to the first location, overwriting the original operand at the first location. Either or both of the operands can be in the memory or the general purpose registers. Is it possible to use fewer instructions of these types to accomplish the task of part (a)? If yes, give the sequence.

Posted Date: 3/18/2013 6:01:50 AM | Location : United States







Related Discussions:- Perform arithmetic computation, Assignment Help, Ask Question on Perform arithmetic computation, Get Answer, Expert's Help, Perform arithmetic computation Discussions

Write discussion on Perform arithmetic computation
Your posts are moderated
Related Questions
P=(Fv- ? Av3) (1-e-µ?) P is Power v is velocity of the belt ? is the density of the belt material ? = 1200 kg/m3 A is the cross sectional a

1. Joe and Sam each invested $20,000 in the stock market. Joe's investment increased in value by 5% per year for 10 years. Sam's investment decreased in value by 5% for 5 years and

There are many situations which call for the replacement of an integral by a sum, or vice versa. In the former case the highest accuracy is sometimes required. This means that in t

I need a research paper. The concept is to develop a new linear programming was not introduced in the art literature before then apply the LP to spcific industry

a) Use divided differences to ?nd the polynomial (in nested form) that interpolates the data b) Add the data point x = 6, y = -20 and hence estimate y for x = 2.

Hello, i need please Matlab Code for DUAL SLOPE DAC. Thanks Marcel

Compute the (real and imaginary parts of the) principal value of the eighth root of (a + ib) to 3 decimal places (accurate to 10 -3 ). Call the real part "m 7 ", and the imagina

From this point on it is assumed that any problem amenable to solution with the aid of the Discrete Fourier Transform (or DFT) will in fact be treated computationally with a fast r

Prove that the Lagrangian coef?cient polynomials for p n (x) satisfy ∑ n k=0 l k (x) = 1. Hint: It is only a 3-line proof. Consider the interpolating polynomial for a constan

Valid objective function for a LPP with x,y,z as decision variables