Perform arithmetic computation, Engineering Mathematics

Assignment Help:

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.


Related Discussions:- Perform arithmetic computation

Monthly salary of the clerk , The price indices for the monthly basis salar...

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.

Value of n, Arrianna spended $5,500 at 7.5% p.a. compounded quarterly for '...

Arrianna spended $5,500 at 7.5% p.a. compounded quarterly for 'n' years. At the end of 'n' years, Arrianna got back $12,000. What is the value of n? (Approximate your answer in yea

Evaluate the expression for various smoothers, Evaluate the expression belo...

Evaluate the expression below for various smoothers, plot and compare the results, making appropriate comments.

Expression to be programmed in matlab, can you help be please to program a ...

can you help be please to program a complex expression in matlab using monte carlo solution

Produce a discrete time series, Produce a discrete time series y(t i ) by s...

Produce a discrete time series y(t i ) by super positioning 5 cosinusoidal components, for your own choice of the amplitudes (a j ) and frequencies (f j ). Add some Gaus

Draw parallel lines with slope, Draw parallel lines with slope +1.05; one p...

Draw parallel lines with slope +1.05; one passes through (0,a), and the other passes through (0,b). Suppose φ is a harmonic function between the two lines, with φ = 0 on the line t

Control theory., Hi I have just received a math assignment and was wonder...

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.

Convolution, can you tell me what is the physical intrepetation of convolut...

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

Time, Two boys A and B are at two diametrically opposite points on a circle...

Two boys A and B are at two diametrically opposite points on a circle. At one instant the two start running on the circle; A anticlockwise with constant speed v and B clockwise wit

Write Your Message!

Captcha
Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd