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

Investigate the output of advertising agencies, In an article in Marketing...

In an article in Marketing Science , Silk and Berndt investigate the output of advertising agencies. They describe ad agency output by finding the shares of dollar billing volume

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

Hypothesis testing, A scientist calculates the temperature of melting plati...

A scientist calculates the temperature of melting platinum using a new type of thermometer. The temperature of the metal is called to be exactly 1768.3 centigrade. The measurements

Statistics, what are median,mode,aveage,mode

what are median,mode,aveage,mode

Matlab and mathmtical., #quesare you can do matlab project for patient sway...

#quesare you can do matlab project for patient sway signal sway measured by center of pressure (cop), to obtain characteristics in ( x,y,z) like velocity profile and acceleration,

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

Temperature function, If a temperature function is given in the x,y plane b...

If a temperature function is given in the x,y plane by T(x,y) = x+y, what is the value, to 3 decimal places, of the corresponding temperature function T1(u,v) at the point (u,v) =

Vector, prove that A=3i+j-2k, B=-i+3j+4k ,C=4i-2j-6k and find the length of...

prove that A=3i+j-2k, B=-i+3j+4k ,C=4i-2j-6k and find the length of the triangle

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

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