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


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
advantages of langmuir adsorption theory

what are the uses of laplace transformation?

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)

A new gantry crane for a metal fabrication shop is to be designed. The designer has proposed the following two different configurations: A. Using only truss elements B. Using the

Below are the conditions specified by the institution: a) If the temperature sensor shows 30 degree Celsius or higher, the air-conditioner will be turned ON regardless of the othe

can you tell me what is the physical intrepetation of convolution theorm or convolution integral?

A company manufactures an assembly consisting of a frame, a shaft, and a ball bearing. The company manufactures the shafts and frames but purchases the ball bearings from a ball be

In estimating the cost of a pile of bricks measured as 2m*15m*1.2m,tape is stretched 1% beyond the standard length if the count is 450 bricks to 1m^3 and bricks cost $530 per 1000,

As an engineering student, the ministry of energy and minerals has tasked you to help them model equation(s) that can estimate the amount of crude oil in a reservoir. The governmen

With the help of energy bands explain how conduction takes place in semiconductors. Semiconductors: Substances as carbon, germanium and silicon that electrical conductivity l