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
You are working as an engineer on a project that involved being able to accurately measure the fluid level change in a large outdoor holding tank. The fluid level rises and falls a

What, to 3 decimal places, is the principal value of [a - ic] (b + id)/10 (real and imaginary parts)? Call the real part, and the imaginary part. Give one (any) other value of th

A scientist calculates the temperature of melting platinum using a new type of thermometer. The temperature of the metal is called to be exactly 1768.3 centigrade. The measurements

EXPERT EPERIENCE PHOENICS SOFTWARE

The system has a solution near (-0.5,-0.7). Set up the matrix equation Jδ = -f for Newton's method and then carry out one iteration, starting with x 0 = -0.5, y 0 = -0.7.

The two sides of a triangle are 17 cm and 28 cm long, and the length of the median drawn to the third side is equal to 19.5 cm. Find the distance from an endpoint of this median to

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

if the sides of a triangle ABC vary in such a way that it''s circum-radius remains constant. prove that, da/cos A+db/cos B+dc/cos C =0

r u there?

A manager has determined the cost C, in dollars, for manufacturing is C(q) =85log 10 (10+q/2) for manufacturing, where q is the number of units produced in a given day. (a