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
can you help be please to program a complex expression in matlab using monte carlo solution

Draw concentric circles of radii a and b, each centered at z=id (on the imaginary axis). Suppose φ(x,y) is a harmonic function inside the washer defined by these circles. The circl

r u there?

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

There is an illustration of a diesel engine sixteen cylinder that is supposed to be four-cycle, however GM never made engines of that size that were not two-cycle. The four valves

if u=x^2-2y^2, v=2x^2-y^2 and x=rcosp ad y=rsinp, find the value of the jacobian d(u,v)/d(r,p)

Answer the following set of simultaneous equations using elimination or substitution method. a) x-y +z= 10 b) 3x+y+2z=34 c) -5x+2y-z=-14

definition of trigonometric function #Minimum 100 words accepted#


Use the simplex method to solve the following LP Problem. Max Z = 107x1+x2+2x3 Subject to 14x1+x2-6x3+3x4=7 16x1+x2-6x3 3x1-x2-x3 x1,x2,x3,x4 >=0