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

555 dual astable multivibrator circuit diagram, could u show me a 555 dual ...

could u show me a 555 dual astable multivibrator circuit diagram?

Define a mapping from the x-y plane, Define a mapping from the x,y plane to...

Define a mapping from the x,y plane to the u,v plane by u = 2x + y, v = -x +2y . If a temperature function is given in the x,y plane by T(x,y) = x+y, what is the value, to 3 de

All.., Ask question #Minimum 100thank you words accepted#

Ask question #Minimum 100thank you words accepted#

Vector, for what values of (a,b) does the point P (0,a,b) lie on the line t...

for what values of (a,b) does the point P (0,a,b) lie on the line through Q (1,-1,4) and R (2,3,5)?

Trigonometric functions, definition of trigonometric function #Minimum 100...

definition of trigonometric function #Minimum 100 words accepted#

Truss elements and fe project, A new gantry crane for a metal fabrication s...

A new gantry crane for a metal fabrication shop is to be designed. The designer has proposed the following two different configurations: A. Using only truss elements B. Using the

Modeling, As an engineering student, the ministry of energy and minerals ha...

As an engineering student, the ministry of energy and minerals has tasked you to help them model equation(s) that can estimate the amount of crude oil in a reservoir. The governmen

Beta gamma functions, integral dx/root of sinx using beta and gamma functio...

integral dx/root of sinx using beta and gamma functions

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

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