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

Lean manufacturing, Ask quassignment writing estion #Minimum 100 words acce...

Ask quassignment writing estion #Minimum 100 words accepted#

Simulating the second order system, First systems were described as systems...

First systems were described as systems that had one method of storing energy.  Second order systems; wait for it.... have two methods of storing energy.  Using a similar mechanica

Find the equilibrium points, Find the equilibrium points (real and imaginar...

Find the equilibrium points (real and imaginary parts, to 3 decimal places) if unit positive line charges are placed at a+ic, b+id, and -3-2i. Designate one of these numbers as "m

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.

Maths, How to solve the problems

How to solve the problems

Real and imaginary parts, What, to 3 decimal places, is the principal value...

What, to 3 decimal places, is the principal value of [a - ic] (b + id)/10 (real and imaginary parts)? Call the real part, and the imaginary part. Give one (any) other value of th

Mechanical advantage, MA for pulling a 1500 gram cart up a 20 degree plane ...

MA for pulling a 1500 gram cart up a 20 degree plane up a 1 meter ramp using a wheel and axel. Wheel diameter is 8 cm

Jacobian, if u=x^2-2y^2, v=2x^2-y^2 and x=rcosp ad y=rsinp, find the value ...

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)

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

Fourier series, b) State by inspection (i.e. without performing any formal ...

b) State by inspection (i.e. without performing any formal analysis) all you can about each of the periodic waveforms shown in FIGURE 1 in terms of their Fourier series when analys

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