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
A paper mill produces two grades of paper viz., X and Y. Because of raw material restrictions, it cannot produce more than 400 tons of grade X paper and 300 tons of grade Y paper i

#quesare you can do matlab project for patient sway signal sway measured by center of pressure (cop), to obtain characteristics in ( x,y,z) like velocity profile and acceleration,

The following are 8 data points that shows the relationship between the number of fishermen and the amount of fish they can catch a day. (Let the number of fishermen be X and the a


Find the quadratic that interpolates f(x) = 2x 3 - x + 1 at the nodes x 0 = 0, x 1 = 2, x 2 = 3, a) by solving a set of three equations for the coefficients of p 2 (x) = a 2

HEllo, i am looking for math solutions online? Let me know how to get it?

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

The price indices for the monthly basis salary of a clerk in years 1992 and 1994 based on year 1990 are 128 and 135. The monthly salary of the clerk in the year 1994 is RM810.


Question 1 Find all solutions of the following equations in the interval [0, 2π) (a) sin(2x) = √2 cos(x). (b) 2 cos 2 (x) + 3 sin(x) = 3. 2. Sketch the graph of the ci