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

Accurately measure the fluid level, You are working as an engineer on a pro...

You are working as an engineer on a project that involved being able to accurately measure the fluid level change in a large outdoor holding tank. The fluid level rises and falls a

Modelling equations , how to model equations to determine the amount of oil...

how to model equations to determine the amount of oil in a reservior

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.

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

Calculate the cost of manufacturing, A manager has determined the cost C, i...

A manager has determined the cost C, in dollars, for manufacturing is C(q) =85log 10 (10+q/2) for manufacturing, where q is the number of units produced in a given day. (a

Modelling equations, model an equation to determine the amount of oil in a...

model an equation to determine the amount of oil in a reservior

Polynomial approximation, how to program lagrange polynomial approximation ...

how to program lagrange polynomial approximation with MATLAB

Inverse z transform, after solving the difference equation using z transfor...

after solving the difference equation using z transform, how to find the inverse z transform for the answer

Numerical analysis, The system has a solution near (-0.5,-0.7). Set...

The system has a solution near (-0.5,-0.7). Set up the matrix equation Jδ = -f for Newton's method and then carry out one iteration, starting with x 0 = -0.5, y 0 = -0.7.

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

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