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
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

i have a wav file which consists of a number of hammer impact noises. i want to break up each impact into and individual wav file. i want to ignore the first 40ms of the impact and

Hi I have just received a math assignment and was wondering if you can take a look at it and tell me if you can be finished before the 12th of february and what the cost will be.

How to solve the problems


in the diagram shown below, the fuel tank which is of uniform cross section and of length 8m is position so that the rear of the tank is 19 metres from the datum. the mass of the f

An experiment conducted over time T necessarily produces a windowed view of the phenomenon generating the data. It is a useful strategy to regard the windowed data as one period of

analyn bought a dining set.She paid 2500 as a downpayment and promised to pay 800 @ the end of each month for year.What s the cash eqivalent of the set if the interest rate is 10%

The displacement x meters of a mass from a fixed point about which it is oscillating is given by x=2.3cos?10pt+4.2sin?10pt where t is the time in seconds Express the displaceme

i need a quote in analytical methods for engineers (Algebraic methods)