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

Explain how conduction takes place in semiconductors, With the help of ener...

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

Matlab, i have a wav file which consists of a number of hammer impact noise...

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

Derivatives, At 8am particle A is at point (0,0) and moves horizontally to ...

At 8am particle A is at point (0,0) and moves horizontally to the right with constant velocity of 60km/hr. At the same time particle B is at the point (0, A+B+C+5) and moves horiz

., parabola

parabola

Curve tracing in polar and cartesian form, i want assignment or notes on cu...

i want assignment or notes on curve tracing in polar form and cartesian form

Calculate the sequence from aitken’s method, Values from the iteration x = ...

Values from the iteration x = cos(x) are: x 0 = 0.8, x 1 = 0.696707, x 2 = 0.766959, x 3 = 0.720024, x 4 = 0.751790, x 5 = 0.730468. a) Calculate the sequence {y n } fr

Find the polynomial, a) Use divided differences to ?nd the polynomial (in n...

a) Use divided differences to ?nd the polynomial (in nested form) that interpolates the data b) Add the data point x = 6, y = -20 and hence estimate y for x = 2.

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